Message269080
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. |
|
Date |
User |
Action |
Args |
2016-06-22 18:29:00 | Andrew Cameron | set | recipients:
+ Andrew Cameron, docs@python |
2016-06-22 18:29:00 | Andrew Cameron | set | messageid: <1466620140.79.0.360465596161.issue27370@psf.upfronthosting.co.za> |
2016-06-22 18:29:00 | Andrew Cameron | link | issue27370 messages |
2016-06-22 18:29:00 | Andrew Cameron | create | |
|