Message233018
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. |
|
Date |
User |
Action |
Args |
2014-12-22 12:29:01 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, martin.panter |
2014-12-22 12:29:01 | serhiy.storchaka | set | messageid: <1419251341.08.0.124015492422.issue23099@psf.upfronthosting.co.za> |
2014-12-22 12:29:01 | serhiy.storchaka | link | issue23099 messages |
2014-12-22 12:29:00 | serhiy.storchaka | create | |
|