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 jaraco
Recipients Dennis Sweeney, eric.smith, jaraco, njs, serhiy.storchaka
Date 2022-01-08.21:17:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1641676677.43.0.736972777438.issue46304@roundup.psfhosted.org>
In-reply-to
Content
Nice reference. Indeed, the [rationale](https://www.python.org/dev/peps/pep-0533/#id15) of that pep gives a similar example and the [background](https://www.python.org/dev/peps/pep-0533/#id3) describes the problem with the solution I've drafted above (it still depends on garbage collection to close the file).

I guess that means that in general, it's not possible to accomplish what I'd like.

As author of the PEP, I'm looping in njs.
History
Date User Action Args
2022-01-08 21:17:57jaracosetrecipients: + jaraco, eric.smith, njs, serhiy.storchaka, Dennis Sweeney
2022-01-08 21:17:57jaracosetmessageid: <1641676677.43.0.736972777438.issue46304@roundup.psfhosted.org>
2022-01-08 21:17:57jaracolinkissue46304 messages
2022-01-08 21:17:57jaracocreate