Message 157576 - Python tracker
The following code crashes with a segfault on Python 2.7.2:
from operator import add
from itertools import izip, starmap
a = b = [1]
for i in xrange(100000):
a = starmap(add, izip(a, b))
list(a)
It also crashes with Python 3.2.2:
from operator import add
from itertools import starmap
a = b = [1]
for i in range(100000):
a = starmap(add, zip(a, b))
list(a)