This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients martin.panter, serhiy.storchaka
Date 2014-12-22.12:29:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1419251341.08.0.124015492422.issue23099@psf.upfronthosting.co.za>
In-reply-to
Content
getvalue() doesn't work after close() for purpose. close() frees memory used by BytesIO.

>>> import io, sys
>>> bio = io.BytesIO()
>>> sys.getsizeof(bio)
52
>>> bio.write(b'x'*1000)
1000
>>> sys.getsizeof(bio)
1053
>>> bio.close()
>>> sys.getsizeof(bio)
52

Changing the behavior will cause regression.

The behavior of memoryview looks as a bug.
History
Date User Action Args
2014-12-22 12:29:01serhiy.storchakasetrecipients: + serhiy.storchaka, martin.panter
2014-12-22 12:29:01serhiy.storchakasetmessageid: <1419251341.08.0.124015492422.issue23099@psf.upfronthosting.co.za>
2014-12-22 12:29:01serhiy.storchakalinkissue23099 messages
2014-12-22 12:29:00serhiy.storchakacreate