[New-bugs-announce] [issue1456] unexpected iterator behavior with removal
report at bugs.python.org
Sun Nov 18 05:32:14 CET 2007
New submission from Joseph Armbruster:
Trunk Revision: 58651
Example of potential issue:
>>> a = [1,2,3,4,5]
>>> for x in a:
If this is the expected behavior of iteration in this case, my
apologies. If this is not, I believe the issue lies in that
listiter_next does not act correctly after a listremove has occurred.
My knowledge of Python development is practically 0, so please take the
patch with a grain of salt.
components: Interpreter Core
title: unexpected iterator behavior with removal
versions: Python 2.6
Added file: http://bugs.python.org/file8769/listobjectpatch.patch
Tracker <report at bugs.python.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1638 bytes
Desc: not available
Url : http://mail.python.org/pipermail/new-bugs-announce/attachments/20071118/ce4d3c6b/attachment.obj
More information about the New-bugs-announce