You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
_pyio.BytesIO destructor raises an unraisable exception if there is a BytesIO buffer #111330
Exception ignored in: <function IOBase.__del__ at 0x7f390c69b410>
Traceback (most recent call last):
File "/home/serhiy/py/cpython/Lib/_pyio.py", line 418, in __del__
self.close()
File "/home/serhiy/py/cpython/Lib/_pyio.py", line 907, in close
self._buffer.clear()
BufferError: Existing exports of data: object cannot be re-sized
Deleting a reference to object while there is still a live buffer that refers its content should not be an issue. It is not an abnormal situation and it should not produce any output.
It is only for the Python implementation. The C implementation raises an unraisable exception in different situation. See #111331.
Activity
gh-111330: Fix GC of _pyio.BytesIO with exports (GH-152335)
pythongh-111330: Fix GC of _pyio.BytesIO with exports (pythonGH-152335)