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 <1507320633.9.0.213398074469.issue31165@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
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: <1507320633.9.0.213398074469.issue31165@psf.upfronthosting.co.za>
2017-10-06 20:10:33vstinnerlinkissue31165 messages
2017-10-06 20:10:33vstinnercreate