Message253112
The code
import itertools
it = itertools.chain.from_iterable((f() for f in [lambda: it]))
list(it)
definitely segfaults on Python 2.6, 2.7, 3.3, and 3.4, and probably segfaults on other versions as well. The code is clearly incorrect in that the lambda references the variable being defined, but it seems like it should raise an error instead of segfaulting. |
|
Date |
User |
Action |
Args |
2015-10-17 02:11:53 | Evan Hubinger | set | recipients:
+ Evan Hubinger |
2015-10-17 02:11:53 | Evan Hubinger | set | messageid: <1445047913.08.0.75860781244.issue25429@psf.upfronthosting.co.za> |
2015-10-17 02:11:53 | Evan Hubinger | link | issue25429 messages |
2015-10-17 02:11:52 | Evan Hubinger | create | |
|