Message223386
Be careful what happens when the original object is mutable:
>>> b = bytearray(b"abc")
>>> bio = io.BytesIO(b)
>>> b[:] = b"defghi"
>>> bio.getvalue()
b'abc'
I don't know what your patch does in this case. |
|
Date |
User |
Action |
Args |
2014-07-17 22:46:37 | pitrou | set | recipients:
+ pitrou, benjamin.peterson, stutzbach, hynek, dw, serhiy.storchaka |
2014-07-17 22:46:37 | pitrou | set | messageid: <1405637197.66.0.842975366189.issue22003@psf.upfronthosting.co.za> |
2014-07-17 22:46:37 | pitrou | link | issue22003 messages |
2014-07-17 22:46:37 | pitrou | create | |
|