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.


_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to