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 Andrew Cameron
Recipients Andrew Cameron, docs@python
Date 2016-06-22.18:29:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1466620140.79.0.360465596161.issue27370@psf.upfronthosting.co.za>
In-reply-to
Content
The documentation for Mutable Sequence Types states that, for operation:
s.extend(x) or s += t

the expected result is:
for the most part the same as s[len(s):len(s)] = x

Note that if you perform operation 's += t' the result is not the same as 's[len(s):len(s)] = x' unless 't == x'.

This does not occur with the Python 3 docs, which uses exclusively 't' (not 'x'). However for people reading the Python 2 docs the variable mix-up could cause confusion.
History
Date User Action Args
2016-06-22 18:29:00Andrew Cameronsetrecipients: + Andrew Cameron, docs@python
2016-06-22 18:29:00Andrew Cameronsetmessageid: <1466620140.79.0.360465596161.issue27370@psf.upfronthosting.co.za>
2016-06-22 18:29:00Andrew Cameronlinkissue27370 messages
2016-06-22 18:29:00Andrew Cameroncreate