generated comprehensions

Raymond Hettinger python at rcn.com
Tue May 14 12:42:19 EDT 2002


> This did occur to me on reading your post, and the result did startle me a
little:
>
>  Python 2.2.1 (#2, Apr 21 2002, 22:22:55)
> [GCC 2.96 20000731 (Mandrake Linux 8.1 2.96-0.62mdk)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> list(xrange(1e9))
> Segmentation fault

Hmm.  That's not cool.
Added bug report:  www.python.org/sf/556025 .


Raymond Hettinger





More information about the Python-list mailing list