[issue19568] bytearray_setslice_linear() leaves the bytearray in an inconsistent state on memory allocation failure
Stefan Krah
report at bugs.python.org
Thu Nov 14 13:38:39 CET 2013
Stefan Krah added the comment:
> 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).
I think intuitively I'd expect the object to be unmodified if there
is any error.
----------
nosy: +skrah
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19568>
_______________________________________
More information about the Python-bugs-list
mailing list