diff options
author | Stephen Rosen <sirosen@globus.org> | 2024-10-12 20:21:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-12 20:21:55 (GMT) |
commit | 4a2282b0679bbf7b7fbd36aae1b1565145238961 (patch) | |
tree | 388008fe28eb59f8170ecc969f544e36ed677491 /Doc | |
parent | 62d5a53a0b2a5262a86984cfe9817aeb653ebfca (diff) | |
download | cpython-4a2282b0679bbf7b7fbd36aae1b1565145238961.zip cpython-4a2282b0679bbf7b7fbd36aae1b1565145238961.tar.gz cpython-4a2282b0679bbf7b7fbd36aae1b1565145238961.tar.bz2 |
Prefer "similar" over "equivalent" in tutorial (#125343)
In the datastructures tutorial doc, some operations are described as
"equivalent to" others. This has led to some user-confusion -- at
least in the Discourse forums -- about cases in which the operations
differ.
This change doesn't systematically eliminate the word "equivalent"
from the tutorial. It just substitutes "similar to" in several cases
in which "equivalent to" could mislead users into expecting exact
equivalence.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/tutorial/datastructures.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index 73f17ad..31941bc 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -19,13 +19,13 @@ objects: .. method:: list.append(x) :noindex: - Add an item to the end of the list. Equivalent to ``a[len(a):] = [x]``. + Add an item to the end of the list. Similar to ``a[len(a):] = [x]``. .. method:: list.extend(iterable) :noindex: - Extend the list by appending all the items from the iterable. Equivalent to + Extend the list by appending all the items from the iterable. Similar to ``a[len(a):] = iterable``. @@ -56,7 +56,7 @@ objects: .. method:: list.clear() :noindex: - Remove all items from the list. Equivalent to ``del a[:]``. + Remove all items from the list. Similar to ``del a[:]``. .. method:: list.index(x[, start[, end]]) @@ -93,7 +93,7 @@ objects: .. method:: list.copy() :noindex: - Return a shallow copy of the list. Equivalent to ``a[:]``. + Return a shallow copy of the list. Similar to ``a[:]``. An example that uses most of the list methods:: |