Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info> writes: > Luckily, Python is open source. If anyone thinks that sets and dicts > should include more code protecting against mutation-during-iteration, > they are more than welcome to come up with a patch. Don't forget unit and > regression tests, and also a set of timing results which show that the > slow-down isn't excessive.
It could be a debugging option, in which case even a fairly significant slowdown is acceptable. -- http://mail.python.org/mailman/listinfo/python-list