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 mhvk
Recipients aronacher, eryksun, martin.panter, mhvk, mitar, r.david.murray
Date 2021-06-03.15:01:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1622732516.93.0.9602530547.issue21363@roundup.psfhosted.org>
In-reply-to
Content
In astropy we are now working around the auto-closing of the underlying stream in TextIOWrapper by subclassing and overriding `__del__` to detach [1]. It would seem more elegant if `TestIOWrapper` (and really, `BufferedReader`) could gain an `closefd` argument, just like `open` has, which is `True` by default.

p.s. Do let me know if it is better to open a new issue.

[1] https://github.com/astropy/astropy/pull/11809
History
Date User Action Args
2021-06-03 15:01:56mhvksetrecipients: + mhvk, aronacher, r.david.murray, mitar, martin.panter, eryksun
2021-06-03 15:01:56mhvksetmessageid: <1622732516.93.0.9602530547.issue21363@roundup.psfhosted.org>
2021-06-03 15:01:56mhvklinkissue21363 messages
2021-06-03 15:01:56mhvkcreate