Message395005
| 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 |
|