[issue19823] for-each on list aborts earlier than expected

Matthew Barnett report at bugs.python.org
Thu Nov 28 16:05:44 CET 2013


Matthew Barnett added the comment:

This issue is best posted to python-list and only posted here if it's agreed that it's a bug.

Anyway:

1. You have "self.flows" and "flows", but haven't said what they are.

2. It's recommended that you don't modify a collection while iterating over it, but, instead, build a new collection and then the old one with the new one.

----------
nosy: +mrabarnett

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


More information about the Python-bugs-list mailing list