Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Mats Wichmann Newsgroups: comp.lang.python Subject: Re: FileNotFoundError thrown due to file name in file, rather than file itself Date: Tue, 12 Nov 2024 13:28:04 -0700 Lines: 11 Message-ID: References: <87v7wt986z.fsf@zedat.fu-berlin.de> <875xosyfr0.fsf@zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de cNTBiXMglcID8w6d/WG/9gAlzvpfa69Ck311JujGTJBQ== Cancel-Lock: sha1:2Hx9vToKloKIiXesginsNfVf/dc= sha256:WoCSBm+HTp2krkAYNqNuneXRbu1tTrxRzMfNLeKtQnE= Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org Authentication-Results: mail.python.org; dkim=pass reason="2048-bit key; unprotected key" header.d=messagingengine.com header.i=@messagingengine.com header.b=f0p+PmSB; dkim-adsp=none (unprotected policy); dkim-atps=neutral X-Spam-Status: OK 0.105 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.80; '*S*': 0.01; 'subject:name': 0.07; 'that.': 0.15; 'logs': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:internal': 0.16; 'received:messagingengine.com': 0.16; 'wrote:': 0.16; "aren't": 0.19; 'to:addr:python-list': 0.20; 'option': 0.20; 'subject:file': 0.22; 'run': 0.23; 'header:User-Agent:1': 0.30; 'python-list': 0.32; 'there': 0.33; 'header:In-Reply-To:1': 0.34; 'really': 0.36; 'way': 0.38; 'want': 0.40; 'helps': 0.60; 'gives': 0.62; 'your': 0.64; 'thus': 0.64; 'right': 0.68; 'currently,': 0.69; 'received:202': 0.69; 'left': 0.83; 'subject: \n ': 0.84; 'subject:than': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wichmann.us; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=2018-07.pbsmtp; t= 1731443286; x=1731529686; bh=a+aCJ4lKCkJP8ADFRSWxFF9WnlVZDu+20hX TQ1kslA4=; b=F2iDx3sg0hE1dEIJekRAnrGNJmZtvmfpVDUdcDaw9/KVJ0lN2ZL iJH4npa0wGnVyljooeVrErcQ4pZDCpNgeEbNzuFq9cRE2RPZU5P+k8nzX5px8jmC kVlXrFx2r1EgNr9zaB0x0fvCaON6gjVfKB6EgE8PpAwRTilCpGu7Q4Gg= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1731443286; x=1731529686; bh=a +aCJ4lKCkJP8ADFRSWxFF9WnlVZDu+20hXTQ1kslA4=; b=f0p+PmSBo0Oox0r9E FZE8LBR7gyczruEBhFYX2eeVhurhPV7FwrLhkTDeBBvpWpNg5d9xA8I/M5xp3283 Bw52RcQy+aJXK9DpMkhI4gphULyqXK4LejqvADzljx6CkuSYHBONKtFi3WCLA911 nMxXFIfCzeX3ihvdItPY5O0p83i8k1K4hEGqrQ7IWAmh1ttM+iChFIE50CWL0Rzy RO/smUjPN1nlwGX44i5dUVMu7uGFDmQ1DWqD4dcRpRQdps96FraijTci3FVcXeSS aB1P9bVgcZ2djGz79vQS/PJ8BgEHwwVJorcEZ9p+dC1ufvdU3pZiJHDUei3/wxnd i7eHw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeggddufeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfg fuvfhfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeforghtshcuhghitghhmhgrnhhn uceomhgrthhsseifihgthhhmrghnnhdruhhsqeenucggtffrrghtthgvrhhnpedtjeduve eiteegteejgeehiedufeekgfdvjefgvedtteduffeuieelieevtdegffenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrghtshesfihitghhmh grnhhnrdhushdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghp thhtohepphihthhhohhnqdhlihhsthesphihthhhohhnrdhorhhg X-ME-Proxy: Feedback-ID: i387144f0:Fastmail User-Agent: Mozilla Thunderbird Content-Language: en-US Autocrypt: addr=mats@wichmann.us; keydata= xsDiBD9xp6oRBAC1vd3YI8Gcr1CxpV1gldNQu0uQsNaICDk+Ai3+R163s/P83JOYG+SBEA3P v7iZx70qpQ3RzP7KrjF1Nm6j0em9ccUX2fPQUCAxXw5Hiq7CSMiwQQZRI6shcnyMh9XTKViT WK5MrKDyvjDEn7epjKzKwPS5SG039l6XaOKU0A4uGwCgsNqUQqC0gMMcbKlJV8ql58iKmbMD /ii8FPQrXmyS/FnsPs7UddV5qMHKm7NUH5oiKuMVyakInRyq9iIxuu3D4Ec6mWRKcGsjmIkW HXCSz0aefs6dsqNqpU54cYioJ3wP5LzHK7oclgJPryVt5Qezbdutf8SQf8gVkaNIlkxwGUzi bKTZ6CHzwlz9nNgeel0XPUcZzFxGA/4paeCg2rMSVuAhUQbsLYHu4XzTs9P16zaXkrtxc4m5 b+BF5xsLgTpyO5l859XudS2Gp+7/Y37dAU4QlyGGOboWmF1y9U5DnzBwG8ghsnym+ga58MJh LdRdQQ6xQolCpEXOuzm40f2r5uMxF3KOJ7WpIPuGAkeCPru9BmlATH+zOs0gTWF0cyBXaWNo bWFubiA8bWF0c0B3aWNobWFubi51cz7CYQQTEQIAIQIbAwYLCQgHAwIDFQIDAxYCAQIeAQIX gAUCT0VyZwIZAQAKCRDAMaCQc9hUxiZBAJ9cWziGp7hVfsu5T+cQptc3rLNndQCgrZh8u5LW BfJ5e/Y+3PwZ8UEm+ELOwE0EP5is8BAEAMtwzcA8TYf5UTjDMgwcSNoErTc9ag+IX05QFgL8 aF8sfJRv5atcitqQy0gSIsOzI+L/AFdPN/+QQI3dL1tCq14t32KPDtigDhzm6jVPXX5z+V9u xnD8XTp+ZvNcWoHXjViM8aXeLLEiCpiVCho307h3XShvqoKINWRQWeAsKKDDAAMFA/48zaey wiiEyvI0meJ1KkNHxdLP0yLODr1WV6j9xkPkLWOaIDw7dlwEOlF1N1YtZ2wa0p1wsttdIbIx ffgwXmcH4zrdxUIMz3U0BqYzk5H+5cYFXECXTFVOmweS+JECYMj80PjRoKCO1eVO1N30zksB 36NnhZWPRWIhjK3ZarIYH8JGBBgRAgAGBQI/mKzwAAoJEMAxoJBz2FTG6VEAoKDYHfDp5Q3q PuPvPahCE9HsXMgAAJ9INTqcLSJrOfyJ8q95nBO1T26H2Q== In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.39 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <87v7wt986z.fsf@zedat.fu-berlin.de> <875xosyfr0.fsf@zedat.fu-berlin.de> Xref: csiph.com comp.lang.python:197008 On 11/12/24 12:10, Left Right via Python-list wrote: > Finally, if you want your logs to go to a file, and currently, your > only option is stderr, your shell gives you a really, really simple > way of redirecting stderr to a file. So, really, there aren't any > excuses to do that. an awful lot of the programs that need to do extensive logging don't run under control of a shell, and thus "shell redirection" helps not at all.