bpo-37054, _pyio: Fix BytesIO and TextIOWrapper __del__() by vstinner · Pull Request #13601 · python/cpython
Fix destructor _pyio.BytesIO and _pyio.TextIOWrapper: initialize their _buffer attribute as soon as possible (in the class body), because it's used by __del__() which calls close().
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request
May 27, 2019miss-islington added a commit that referenced this pull request
May 28, 2019Fix destructor _pyio.BytesIO and _pyio.TextIOWrapper: initialize their _buffer attribute as soon as possible (in the class body), because it's used by __del__() which calls close(). (cherry picked from commit a356841) Co-authored-by: Victor Stinner <vstinner@redhat.com>
DinoV pushed a commit to DinoV/cpython that referenced this pull request
Jan 14, 2020…3601) Fix destructor _pyio.BytesIO and _pyio.TextIOWrapper: initialize their _buffer attribute as soon as possible (in the class body), because it's used by __del__() which calls close().
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters