Message279970
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. |
|
Date |
User |
Action |
Args |
2016-11-03 08:08:28 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, methane, xiang.zhang |
2016-11-03 08:08:28 | serhiy.storchaka | set | messageid: <1478160508.48.0.380439357653.issue28580@psf.upfronthosting.co.za> |
2016-11-03 08:08:28 | serhiy.storchaka | link | issue28580 messages |
2016-11-03 08:08:28 | serhiy.storchaka | create | |
|