This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients brian.curtin, chris.jerdonek, jeremy.kloth, jkloth, loewis, ncoghlan, pitrou, tim.golden
Date 2012-08-02.15:24:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343921062.13.0.768591280026.issue15496@psf.upfronthosting.co.za>
In-reply-to
Content
I fail to see the point of not using os.stat. IIUC, Windows will delete the file once the last handle is been closed. Since stat will close any handle it temporarily gets, it will not prolong the live of the file; the file will still go away when the last process has closed it.

Performance is not an issue at all here, since we are waiting for the deletion of the file anyway. So checking whether the file is in the directory listing is fine with me as well. Unless someone can demonstrate how os.stat can prevent removal of the file, I'd like to see the comment corrected, though.
History
Date User Action Args
2012-08-02 15:24:22loewissetrecipients: + loewis, ncoghlan, pitrou, tim.golden, jkloth, brian.curtin, jeremy.kloth, chris.jerdonek
2012-08-02 15:24:22loewissetmessageid: <1343921062.13.0.768591280026.issue15496@psf.upfronthosting.co.za>
2012-08-02 15:24:21loewislinkissue15496 messages
2012-08-02 15:24:21loewiscreate