Serhiy Storchaka added the comment:

It is appropriate if iterating modifying dict raises RuntimeError, produces 
less items or even produce some items multiple times. What is not appropriate 
-- crash, hang and infinite iteration. There was a proposition about making 
this behavior more consistent (issue19332), but it was rejected.

I would suggest just remove assert() from your patch and address undefined 
behavior in other issue.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28580>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to