-
-
Notifications
You must be signed in to change notification settings - Fork 35.2k
gh-150319: Replace all documentation which says "See PEP 585" #150325
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
Changes from 11 commits
12ca4d9
d797621
3a51ab5
3f22858
33770c7
cf6e6b6
7ab7974
26600c5
a02c487
4986ead
680f16c
4bb0cbf
7b3ea53
9bb3854
4526a52
5dcee42
cc9a5cf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1403,6 +1403,9 @@ application). | |||||||||||||||
| Many other operations also produce lists, including the :func:`sorted` | ||||||||||||||||
| built-in. | ||||||||||||||||
|
|
||||||||||||||||
|
|
||||||||||||||||
| Lists are :ref:`generic <generics>` over the types of their items. | ||||||||||||||||
|
|
||||||||||||||||
|
picnixz marked this conversation as resolved.
|
||||||||||||||||
| Lists implement all of the :ref:`common <typesseq-common>` and | ||||||||||||||||
| :ref:`mutable <typesseq-mutable>` sequence operations. Lists also provide the | ||||||||||||||||
| following additional method: | ||||||||||||||||
|
|
@@ -1494,6 +1497,11 @@ homogeneous data is needed (such as allowing storage in a :class:`set` or | |||||||||||||||
| Tuples implement all of the :ref:`common <typesseq-common>` sequence | ||||||||||||||||
| operations. | ||||||||||||||||
|
|
||||||||||||||||
| Tuples are :ref:`generic <generics>` over the types of their contents. | ||||||||||||||||
| For more information, refer to | ||||||||||||||||
| :ref:`the typing documentation on annotating tuples <annotating-tuples>`. | ||||||||||||||||
|
|
||||||||||||||||
|
|
||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this and the comment above are fixing multiline whitespace, but with this one I really can't tell from the github compare view what it's going to do. I'll apply what I think is meant here manually, in a co-authored commit.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I got this right in 4bb0cbf ? But let me know if it's wrong.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are two blank lines after "deques are :ref:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I started checking You'll see that the two blank lines after that section predate these changes. Should I be removing that? I consider it orthogonal to these changes and would strongly prefer not to be making any change outside of the scope of this work. But I can if it's definitely a bugfix.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can remove blank lines if your new paragraphs fit in bewteen them, but otherwise no need to change elsewhere or add more. |
||||||||||||||||
| For heterogeneous collections of data where access by name is clearer than | ||||||||||||||||
| access by index, :func:`collections.namedtuple` may be a more appropriate | ||||||||||||||||
| choice than a simple tuple object. | ||||||||||||||||
|
|
@@ -4663,6 +4671,9 @@ copying. | |||||||||||||||
| >>> hash(v[::-2]) == hash(b'abcefg'[::-2]) | ||||||||||||||||
| True | ||||||||||||||||
|
|
||||||||||||||||
|
|
||||||||||||||||
| memoryviews are :ref:`generic <generics>` over the type of their underlying data. | ||||||||||||||||
|
picnixz marked this conversation as resolved.
Outdated
|
||||||||||||||||
|
|
||||||||||||||||
| .. versionchanged:: 3.3 | ||||||||||||||||
| One-dimensional memoryviews can now be sliced. | ||||||||||||||||
| One-dimensional memoryviews with formats 'B', 'b' or 'c' are now :term:`hashable`. | ||||||||||||||||
|
|
@@ -5279,6 +5290,9 @@ Note, the *elem* argument to the :meth:`~object.__contains__`, | |||||||||||||||
| :meth:`~set.discard` methods may be a set. To support searching for an equivalent | ||||||||||||||||
| frozenset, a temporary one is created from *elem*. | ||||||||||||||||
|
|
||||||||||||||||
|
|
||||||||||||||||
| Sets and frozensets are :ref:`generic <generics>` over the type of their elements. | ||||||||||||||||
|
|
||||||||||||||||
| .. seealso:: | ||||||||||||||||
|
|
||||||||||||||||
| For detailed information on thread-safety guarantees for :class:`set` | ||||||||||||||||
|
|
@@ -5382,6 +5396,9 @@ can be used interchangeably to index the same dictionary entry. | |||||||||||||||
| Dictionary order is guaranteed to be insertion order. This behavior was | ||||||||||||||||
| an implementation detail of CPython from 3.6. | ||||||||||||||||
|
|
||||||||||||||||
| Dictionaries are :ref:`generic <generics>` over two types, signifying | ||||||||||||||||
| (respectively) the types of the dictionary's keys and values. | ||||||||||||||||
|
|
||||||||||||||||
| These are the operations that dictionaries support (and therefore, custom | ||||||||||||||||
| mapping types should support too): | ||||||||||||||||
|
|
||||||||||||||||
|
|
@@ -5719,6 +5736,10 @@ Frozen dictionaries | |||||||||||||||
| :class:`!frozendict` is not a :class:`!dict` subclass but inherits directly | ||||||||||||||||
| from ``object``. | ||||||||||||||||
|
|
||||||||||||||||
| Like dictionaries, frozendicts are :ref:`generic <generics>` over two types, | ||||||||||||||||
| signifying (respectively) the types of the frozendict's keys and values. | ||||||||||||||||
|
|
||||||||||||||||
|
|
||||||||||||||||
| .. versionadded:: 3.15 | ||||||||||||||||
|
|
||||||||||||||||
|
|
||||||||||||||||
|
|
||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| Generic builtin and standard library types now document the meaning of their | ||
| type parameters. |
Uh oh!
There was an error while loading. Please reload this page.