Message289566
It would be nice if you provided the solution with %S. But if you don't do this, and nobody other provide other pull request, I'll merge the current solution.
When the dictionary keys are changed during iteration PyDict_Next() can skip some key-value pairs or return some key-value pairs multiple times. It never raises an exception, crashes or hangs in infinite loop. This is appropriate.
The problem is that after calling __str__ for the key, the borrowed reference to the value can become invalid, and __repr__ will be called for destroyed object. This can cause an undefined behavior, in particular a crash. |
|
Date |
User |
Action |
Args |
2017-03-14 05:55:40 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, lukasz.langa, josh.r, MSeifert |
2017-03-14 05:55:40 | serhiy.storchaka | set | messageid: <1489470940.31.0.657710212152.issue29800@psf.upfronthosting.co.za> |
2017-03-14 05:55:40 | serhiy.storchaka | link | issue29800 messages |
2017-03-14 05:55:39 | serhiy.storchaka | create | |
|