Message202846
> With the patch, the deletion succeeded even if you get a MemoryError. The bytearray object is consistent. It's just that its buffer could be smaller (it wastes memory).
Yes, but if a MemoryError occurred during slice assignment b[3:6] = b'ab', the bytearray will be not consistent. For consistency we should copy replacement bytes. |
|
Date |
User |
Action |
Args |
2013-11-14 15:03:59 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, vstinner, skrah |
2013-11-14 15:03:59 | serhiy.storchaka | set | messageid: <1384441439.34.0.677836678024.issue19568@psf.upfronthosting.co.za> |
2013-11-14 15:03:59 | serhiy.storchaka | link | issue19568 messages |
2013-11-14 15:03:59 | serhiy.storchaka | create | |
|