Message395005
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 |
|
Date |
User |
Action |
Args |
2021-06-03 15:01:56 | mhvk | set | recipients:
+ mhvk, aronacher, r.david.murray, mitar, martin.panter, eryksun |
2021-06-03 15:01:56 | mhvk | set | messageid: <1622732516.93.0.9602530547.issue21363@roundup.psfhosted.org> |
2021-06-03 15:01:56 | mhvk | link | issue21363 messages |
2021-06-03 15:01:56 | mhvk | create | |
|