Author davidhalter
Recipients davidhalter
Date 2012-12-27.12:30:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1356611402.04.0.240264046705.issue16791@psf.upfronthosting.co.za>
In-reply-to
Content
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].
History
Date User Action Args
2012-12-27 12:30:02davidhaltersetrecipients: + davidhalter
2012-12-27 12:30:02davidhaltersetmessageid: <1356611402.04.0.240264046705.issue16791@psf.upfronthosting.co.za>
2012-12-27 12:30:01davidhalterlinkissue16791 messages
2012-12-27 12:30:01davidhaltercreate