Browse Source
bpo-34118: memoryview, range, and tuple are classes (GH-17761)
Tag memoryview, range, and tuple as classes, the same as list, etcetera, in
the library manual built-in functions list.
pull/17766/head
Terry Jan Reedy
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
5 additions and
3 deletions
-
Doc/library/functions.rst
-
Misc/NEWS.d/next/IDLE/2019-12-30-16-44-07.bpo-34118.FaNW0a.rst
|
|
|
@ -952,7 +952,7 @@ are always available. They are listed here in alphabetical order. |
|
|
|
|
|
|
|
|
|
|
|
.. _func-memoryview: |
|
|
|
.. function:: memoryview(obj) |
|
|
|
.. class:: memoryview(obj) |
|
|
|
:noindex: |
|
|
|
|
|
|
|
Return a "memory view" object created from the given argument. See |
|
|
|
@ -1408,7 +1408,7 @@ are always available. They are listed here in alphabetical order. |
|
|
|
|
|
|
|
|
|
|
|
.. _func-range: |
|
|
|
.. function:: range(stop) |
|
|
|
.. class:: range(stop) |
|
|
|
range(start, stop[, step]) |
|
|
|
:noindex: |
|
|
|
|
|
|
|
@ -1655,7 +1655,7 @@ are always available. They are listed here in alphabetical order. |
|
|
|
|
|
|
|
|
|
|
|
.. _func-tuple: |
|
|
|
.. function:: tuple([iterable]) |
|
|
|
.. class:: tuple([iterable]) |
|
|
|
:noindex: |
|
|
|
|
|
|
|
Rather than being a function, :class:`tuple` is actually an immutable |
|
|
|
|
|
|
|
@ -0,0 +1,2 @@ |
|
|
|
Tag memoryview, range, and tuple as classes, the same as list, etcetera, in |
|
|
|
the library manual built-in functions list. |