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

2016年4月11日 00:29:28 -0700

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
[email protected]
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