Message204653
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) |
|
Date |
User |
Action |
Args |
2013-11-28 14:03:18 | cost6 | set | recipients:
+ cost6 |
2013-11-28 14:03:18 | cost6 | set | messageid: <1385647398.27.0.505205145304.issue19823@psf.upfronthosting.co.za> |
2013-11-28 14:03:18 | cost6 | link | issue19823 messages |
2013-11-28 14:03:17 | cost6 | create | |
|