Message253112
| 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: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 |
|