Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Neil Cerutti Newsgroups: comp.lang.python Subject: Re: Creating a function for a directory Date: 12 Nov 2013 13:42:37 GMT Organization: Norwich University Lines: 14 Message-ID: References: <521ed3d4-e2f7-4196-947d-61f94573a8ce@googlegroups.com> <5281775f$0$6574$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: individual.net 5u7yhi6BNUuKZhd34wWMBQ1zGV8RgnUCisCtGjV8KqIQdR1SFv Cancel-Lock: sha1:Akd8YYx8vOVymnYa9TEyjzL2XBA= User-Agent: slrn/0.9.9p1/mm/ao (Win32) Xref: csiph.com comp.lang.python:59193 On 2013-11-12, Steven D'Aprano wrote: > Using os.path.exists before opening a file is, for the most > part, a waste of time. I use it in conjuction with file creation times to check that I didn't forget to update/create one of the data files a process might need. Since I have to create the data file manually, race conditions seem unlikely. -- Neil Cerutti