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 cost6
Recipients cost6
Date 2013-11-28.14:03:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385647398.27.0.505205145304.issue19823@psf.upfronthosting.co.za>
In-reply-to
Content
for-each does not iterate over all entries of collection, if one removes elements during the iteration.

Example (misbehaving) code:

def keepByValue(self, key=None, value=[]):
    for row in self.flows:
        if not row[key] in value:
            flows.remove(row)
History
Date User Action Args
2013-11-28 14:03:18cost6setrecipients: + cost6
2013-11-28 14:03:18cost6setmessageid: <1385647398.27.0.505205145304.issue19823@psf.upfronthosting.co.za>
2013-11-28 14:03:18cost6linkissue19823 messages
2013-11-28 14:03:17cost6create