Infinitely nested containers
Zachary Ware
zachary.ware+pylist at gmail.com
Fri Nov 21 14:30:50 EST 2014
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.
--
Zach
More information about the Python-list
mailing list