summaryrefslogtreecommitdiff
path: root/Misc/NEWS.d/next/Library/2019-05-28-01-06-44.bpo-37054.sLULGQ.rst
blob: 9a2433abd0d0004a9787028f02446fe4e960bf79 (plain)
1
2
3
Fix destructor :class:`_pyio.BytesIO` and :class:`_pyio.TextIOWrapper`:
initialize their ``_buffer`` attribute as soon as possible (in the class
body), because it's used by ``__del__()`` which calls ``close()``.