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 pitrou, serhiy.storchaka, skrah, vstinner
Date 2013-11-14.15:03:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1384441439.34.0.677836678024.issue19568@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2013-11-14 15:03:59serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, vstinner, skrah
2013-11-14 15:03:59serhiy.storchakasetmessageid: <1384441439.34.0.677836678024.issue19568@psf.upfronthosting.co.za>
2013-11-14 15:03:59serhiy.storchakalinkissue19568 messages
2013-11-14 15:03:59serhiy.storchakacreate