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 martin.panter
Recipients Stephen Gallagher, martin.panter
Date 2015-03-30.04:21:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427689270.56.0.603607572579.issue23755@psf.upfronthosting.co.za>
In-reply-to
Content
I think I have often passed delete=False because of the documented deficiency with Windows (see Issue 14243). Depending on the outcome of that issue, allowing for deletion after close() might be useful too.

BTW, monkey-patching __del__() probably won’t work if you only set an attribute on the “f” instance, instead of modifying the class itself. See <file:///home/proj/python/cpython/Doc/build/html/reference/datamodel.html#special-method-lookup>.
History
Date User Action Args
2015-03-30 04:21:10martin.pantersetrecipients: + martin.panter, Stephen Gallagher
2015-03-30 04:21:10martin.pantersetmessageid: <1427689270.56.0.603607572579.issue23755@psf.upfronthosting.co.za>
2015-03-30 04:21:10martin.panterlinkissue23755 messages
2015-03-30 04:21:10martin.pantercreate