-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Prefer "similar" over "equivalent" in tutorial #125343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prefer "similar" over "equivalent" in tutorial #125343
Conversation
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.
Maybe roughly equivalent is better? |
@@ -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[:]``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC, this one is really equivalent but maybe I'm wrong. And many scripts use a[:]
instead of .copy()
.
8000
@@ -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[:]``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
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. (cherry picked from commit 4a2282b) Co-authored-by: Stephen Rosen <sirosen@globus.org>
GH-125372 is a backport of this pull request to the 3.13 branch. |
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. (cherry picked from commit 4a2282b) Co-authored-by: Stephen Rosen <sirosen@globus.org>
GH-125373 is a backport of this pull request to the 3.12 branch. |
…-125372) Prefer "similar" over "equivalent" in tutorial (GH-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. (cherry picked from commit 4a2282b) Co-authored-by: Stephen Rosen <sirosen@globus.org>
…-125373) Prefer "similar" over "equivalent" in tutorial (GH-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. (cherry picked from commit 4a2282b) Co-authored-by: Stephen Rosen <sirosen@globus.org>
In the datastructures tutorial doc, some operations are described as "equivalent to" others.
This has led to some user-confusion -- at least here 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.
Some thread participants in Discourse seem to want more changes to this doc.
I'm not against further changes, but in my view this change of wording is trivial and can be made as a first step.
📚 Documentation preview 📚: https://cpython-previews--125343.org.readthedocs.build/