Infinitely nested containers

Terry Reedy tjreedy at udel.edu
Sat Nov 22 22:57:42 CET 2014


On 11/21/2014 2:30 PM, Zachary Ware wrote:
> On Fri, Nov 21, 2014 at 12:37 PM, Ian Kelly <ian.g.kelly at gmail.com> wrote:
>> Here's a nice crash. I thought this might similarly produce a
>> recursion depth error, but no, it's a seg fault!
>>
>> $ cat test.py
>> import itertools
>>
>> l = []
>> it = itertools.chain.from_iterable(l)
>> l.append(it)
>> next(it)
>> $ python3 test.py
>> Segmentation fault (core dumped)
>
> Would you mind submitting a bug report for that?  Any segfault
> produced by pure Python code must be fixed.

This is too important to lose.
http://bugs.python.org/issue22920


-- 
Terry Jan Reedy




More information about the Python-list mailing list