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 JosephArmbruster
Recipients JosephArmbruster
Date 2007-11-18.04:32:12
SpamBayes Score 0.00028949336
Marked as misclassified No
Message-id <1195360334.0.0.509971000187.issue1456@psf.upfronthosting.co.za>
In-reply-to
Content
Trunk Revision: 58651

Example of potential issue:

>>> a = [1,2,3,4,5]
>>>
>>> for x in a:
...   a.remove(x)
...
>>>
>>> a
[2, 4]


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.
Files
File name Uploaded
listobjectpatch.patch JosephArmbruster, 2007-11-18.04:32:12
History
Date User Action Args
2007-11-18 04:32:14JosephArmbrustersetspambayes_score: 0.000289493 -> 0.00028949336
recipients: + JosephArmbruster
2007-11-18 04:32:14JosephArmbrustersetspambayes_score: 0.000289493 -> 0.000289493
messageid: <1195360334.0.0.509971000187.issue1456@psf.upfronthosting.co.za>
2007-11-18 04:32:13JosephArmbrusterlinkissue1456 messages
2007-11-18 04:32:12JosephArmbrustercreate