This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Evan Hubinger
Recipients Evan Hubinger
Date 2015-10-17.02:11:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445047913.08.0.75860781244.issue25429@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-10-17 02:11:53Evan Hubingersetrecipients: + Evan Hubinger
2015-10-17 02:11:53Evan Hubingersetmessageid: <1445047913.08.0.75860781244.issue25429@psf.upfronthosting.co.za>
2015-10-17 02:11:53Evan Hubingerlinkissue25429 messages
2015-10-17 02:11:52Evan Hubingercreate