Message157576
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) |
|
Date |
User |
Action |
Args |
2012-04-05 12:28:38 | progrper | set | recipients:
+ progrper |
2012-04-05 12:28:38 | progrper | set | messageid: <1333628918.06.0.633986455545.issue14507@psf.upfronthosting.co.za> |
2012-04-05 12:28:37 | progrper | link | issue14507 messages |
2012-04-05 12:28:37 | progrper | create | |
|