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 martin.panter, reidfaiv
Date 2016-03-10.21:39:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1457645946.66.0.758708730132.issue26528@psf.upfronthosting.co.za>
In-reply-to
Content
Actually I was a bit hasty in my response last night. NameError indicates that the “open” symbol has been deleted, not just set to None. If you add print(sorted(builtins.__dict__.keys())) inside __exit__() you can verify this is the case.

This contradicts my understanding of the finalization process (symbols being deleted rather than being set to None). Maybe the documentation needs fixing?
History
Date User Action Args
2016-03-10 21:39:06martin.pantersetrecipients: + martin.panter, reidfaiv
2016-03-10 21:39:06martin.pantersetmessageid: <1457645946.66.0.758708730132.issue26528@psf.upfronthosting.co.za>
2016-03-10 21:39:06martin.panterlinkissue26528 messages
2016-03-10 21:39:06martin.pantercreate