[Python-Dev] Challenge: Please break this! (a.k.a restricted mode revisited)

Serhiy Storchaka storchaka at gmail.com
Mon Apr 11 03:26:57 EDT 2016

On 11.04.16 00:53, Jon Ribbens wrote:
>> Try following example:
>>      it = iter([1])
>>      for i in range(1000000):
>>          it = filter(None, it)
>>      next(it)
> That does indeed segfault. I guess you should report that as a bug!

There is old issue that doesn't have adequate solution. And this is only 
one example, you can get segfault with other recursive iterators.

More information about the Python-Dev mailing list