Kaydet (Commit) aaa4baf4 authored tarafından Martin Panter's avatar Martin Panter

Issue #27370: Use t for an iterable in mutable sequence ops

üst 8da85a17
...@@ -1670,8 +1670,8 @@ an arbitrary object): ...@@ -1670,8 +1670,8 @@ an arbitrary object):
| ``s.append(x)`` | same as ``s[len(s):len(s)] = | \(2) | | ``s.append(x)`` | same as ``s[len(s):len(s)] = | \(2) |
| | [x]`` | | | | [x]`` | |
+------------------------------+--------------------------------+---------------------+ +------------------------------+--------------------------------+---------------------+
| ``s.extend(x)`` or | for the most part the same as | \(3) | | ``s.extend(t)`` or | for the most part the same as | \(3) |
| ``s += t`` | ``s[len(s):len(s)] = x`` | | | ``s += t`` | ``s[len(s):len(s)] = t`` | |
+------------------------------+--------------------------------+---------------------+ +------------------------------+--------------------------------+---------------------+
| ``s *= n`` | updates *s* with its contents | \(11) | | ``s *= n`` | updates *s* with its contents | \(11) |
| | repeated *n* times | | | | repeated *n* times | |
...@@ -1708,7 +1708,7 @@ Notes: ...@@ -1708,7 +1708,7 @@ Notes:
this misfeature has been deprecated since Python 1.4. this misfeature has been deprecated since Python 1.4.
(3) (3)
*x* can be any iterable object. *t* can be any iterable object.
(4) (4)
Raises :exc:`ValueError` when *x* is not found in *s*. When a negative index is Raises :exc:`ValueError` when *x* is not found in *s*. When a negative index is
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment