[Python-Dev] More data points (original) (raw)

Raymond Hettinger python at rcn.com
Sat Sep 25 21:17:15 CEST 2004


[Bob Ippolito]

> > >>> x = [] > > >>> x.extend(-y for y in x) > > Segmentation fault

I get a MemoryError.

To help with get a comprehensive view when I look at this more closely tomorrow, can you try out variations on the theme with other mutables:

myset.update deque.extend dict.update dict.fromkeys array.extend

Raymond



More information about the Python-Dev mailing list