Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Ben Finney Newsgroups: comp.lang.python Subject: Re: Make a unique filesystem path, without creating the file Date: Wed, 17 Feb 2016 06:40:20 +1100 Lines: 15 Message-ID: References: <85egce6a8a.fsf@benfinney.id.au> <20160215230539.GA42677@cskk.homeip.net> <851t8d42rt.fsf@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de wFlYWgcfVDvl/9USxpTvEQl6TaU1Gij+8qYF3vqLS43Q== Cancel-Lock: sha1:Tmtavqu5IWihky93DRDUZmwDp0Y= Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.018 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'subject:file': 0.07; 'benjamin': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'thread': 0.10; 'explicitly': 0.15; '460': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'space;': 0.16; 'exists': 0.18; 'saying': 0.22; 'exists.': 0.22; 'patch': 0.24; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'name?': 0.29; 'asked': 0.29; 'open': 0.33; 'file': 0.34; 'except': 0.34; 'there': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'why': 0.39; 'subject:the': 0.39; 'to:addr:python.org': 0.40; 'still': 0.40; 'care': 0.60; 'real': 0.62; 'times': 0.63; '8bit%:21': 0.70; 'skip:\xe2 10': 0.70; '\xe2\x80\x93': 0.72; '_o__)': 0.84; 'oscar': 0.84; 'received:125': 0.84; 'subject:Make': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: jigong.madmonks.org X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21rc2 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:103027 Oscar Benjamin writes: > If you're going to patch open to return a fake file when asked to open > fake_file_path why do you care whether there is a real file of that > name? I don't, and have been saying explicitly many times in this thread that I do not care whether the file exists. Somehow that is still not clear? -- \ “Nothing exists except atoms and empty space; everything else | `\ is opinion.” —Democritus, c. 460 BCE – 370 BCE | _o__) | Ben Finney