[issue27370] Inconsistency in docs for list.extend

2016-06-22 Thread Martin Panter
Martin Panter added the comment: The t vs x mixup was introduced by my sloppy backport in Issue 16701. The other problem here is x is generally defined as any arbitrary object, but redefined as an iterable in the footnote. I think we should use t instead, as in the other two slice assignment o

[issue27370] Inconsistency in docs for list.extend

2016-06-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset c91007ab3fda by Martin Panter in branch '2.7': Issue #27370: Use t for an iterable in mutable sequence ops https://hg.python.org/cpython/rev/c91007ab3fda -- nosy: +python-dev ___ Python tracker

[issue27370] Inconsistency in docs for list.extend

2016-06-22 Thread Andrew Cameron
New submission from Andrew Cameron: 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(