[New-bugs-announce] [issue19578] del list[a:b:c] doesn't handle correctly list_resize() failure

STINNER Victor report at bugs.python.org
Thu Nov 14 01:42:00 CET 2013


New submission from STINNER Victor:

"del list[start:stop:step]" instruction doesn't handle list_resize() failure when step != 1.

Attached patch notifies the caller that list_resize() fails. On case of failure, the list is modified (items are deleted), it's just that list buffer could be smaller (it wastes memory).

See also issue #19568 which is similar for bytearray.

----------
files: list_ass_subscript.patch
keywords: patch
messages: 202808
nosy: haypo
priority: normal
severity: normal
status: open
title: del list[a:b:c] doesn't handle correctly list_resize() failure
versions: Python 3.4
Added file: http://bugs.python.org/file32607/list_ass_subscript.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19578>
_______________________________________


More information about the New-bugs-announce mailing list