Author vstinner
Recipients Oren Milman, geeknik, lemburg, pitrou, serhiy.storchaka, tim.peters, twouters, vstinner
Date 2017-10-06.20:10:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> 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:33vstinnersetrecipients: + vstinner, lemburg, tim.peters, twouters, pitrou, serhiy.storchaka, Oren Milman, geeknik
2017-10-06 20:10:33vstinnersetmessageid: <>
2017-10-06 20:10:33vstinnerlinkissue31165 messages
2017-10-06 20:10:33vstinnercreate