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.

作者 loewis
收信人 brian.curtin, chris.jerdonek, jeremy.kloth, jkloth, loewis, ncoghlan, pitrou, tim.golden
日期 2012-08-02.15:24:21
SpamBayes Score -1.0
Marked as misclassified
Message-id <1343921062.13.0.768591280026.issue15496@psf.upfronthosting.co.za>
In-reply-to
内容
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.
历史
日期 用户 动作 参数
2012-08-02 15:24:22loewis修改recipients: + loewis, ncoghlan, pitrou, tim.golden, jkloth, brian.curtin, jeremy.kloth, chris.jerdonek
2012-08-02 15:24:22loewis修改messageid: <1343921062.13.0.768591280026.issue15496@psf.upfronthosting.co.za>
2012-08-02 15:24:21loewis链接issue15496 messages
2012-08-02 15:24:21loewis创建