Message178296
The following lines run infinitely:
b = [1]
import itertools
b += itertools.chain.from_iterable([c] for c in b)
In my opinion this is a bug. Clearly you could say that this is an implementation detail. But afaik this is not documented and very misleading.
BTW: In PyPy b would be [1, 1]. |
|
Date |
User |
Action |
Args |
2012-12-27 12:30:02 | davidhalter | set | recipients:
+ davidhalter |
2012-12-27 12:30:02 | davidhalter | set | messageid: <1356611402.04.0.240264046705.issue16791@psf.upfronthosting.co.za> |
2012-12-27 12:30:01 | davidhalter | link | issue16791 messages |
2012-12-27 12:30:01 | davidhalter | create | |
|