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 stefanchrobot
Recipients docs@python, stefanchrobot
Date 2013-05-08.21:31:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1368048699.98.0.203661524608.issue17939@psf.upfronthosting.co.za>
In-reply-to
Content
http://docs.python.org/3/reference/simple_stmts.html#assignment-statements

The docs says:

"If the target is a slicing: The primary expression in the reference is evaluated. It should yield a mutable sequence object (such as a list). The assigned object should be a sequence object of the same type."

This seems wrong, because the assigned object can be any iterable:

a = [4, 5, 6]
a[0:0] = range(1, 4)
# a is now [1, 2, 3, 4, 5, 6]
History
Date User Action Args
2013-05-08 21:31:40stefanchrobotsetrecipients: + stefanchrobot, docs@python
2013-05-08 21:31:39stefanchrobotsetmessageid: <1368048699.98.0.203661524608.issue17939@psf.upfronthosting.co.za>
2013-05-08 21:31:39stefanchrobotlinkissue17939 messages
2013-05-08 21:31:39stefanchrobotcreate