Message303849
> Oh, you are right Oren. Seems this is the only solution.
There are other solutions. I wrote PR 3911 which checks if the list size changed after PyList_New(). If it's the case, a RuntimeError exception is raised.
We implemented similar checks in the dict type, if the dict is mutated during iterating on it. |
|
Date |
User |
Action |
Args |
2017-10-06 20:10:33 | vstinner | set | recipients:
+ vstinner, lemburg, tim.peters, twouters, pitrou, serhiy.storchaka, Oren Milman, geeknik |
2017-10-06 20:10:33 | vstinner | set | messageid: <1507320633.9.0.213398074469.issue31165@psf.upfronthosting.co.za> |
2017-10-06 20:10:33 | vstinner | link | issue31165 messages |
2017-10-06 20:10:33 | vstinner | create | |
|