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 terry.reedy
Recipients docs@python, ezio.melotti, stefanchrobot, terry.reedy
Date 2013-05-10.19:45:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1368215139.65.0.111265653015.issue17939@psf.upfronthosting.co.za>
In-reply-to
Content
Since range objects have a known length, that example is not enough to show 'any iterable'. However, generators do not even have a __length_hint__ and they work too.

a = [1,2,3]
a[0:1] = (i for i in range(4))
print(a)
>>> 
[0, 1, 2, 3, 2, 3]
History
Date User Action Args
2013-05-10 19:45:39terry.reedysetrecipients: + terry.reedy, ezio.melotti, docs@python, stefanchrobot
2013-05-10 19:45:39terry.reedysetmessageid: <1368215139.65.0.111265653015.issue17939@psf.upfronthosting.co.za>
2013-05-10 19:45:39terry.reedylinkissue17939 messages
2013-05-10 19:45:39terry.reedycreate