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 serhiy.storchaka
Recipients methane, serhiy.storchaka, vstinner, xiang.zhang
Date 2016-11-03.08:08:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1478160508.48.0.380439357653.issue28580@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-11-03 08:08:28serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, methane, xiang.zhang
2016-11-03 08:08:28serhiy.storchakasetmessageid: <1478160508.48.0.380439357653.issue28580@psf.upfronthosting.co.za>
2016-11-03 08:08:28serhiy.storchakalinkissue28580 messages
2016-11-03 08:08:28serhiy.storchakacreate