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.
(cherry picked from commit ee9ff05ec2
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
fcaf14cd91
commit
ec941568bd
|
@ -950,7 +950,7 @@ are always available. They are listed here in alphabetical order.
|
||||||
|
|
||||||
|
|
||||||
.. _func-memoryview:
|
.. _func-memoryview:
|
||||||
.. function:: memoryview(obj)
|
.. class:: memoryview(obj)
|
||||||
:noindex:
|
:noindex:
|
||||||
|
|
||||||
Return a "memory view" object created from the given argument. See
|
Return a "memory view" object created from the given argument. See
|
||||||
|
@ -1412,7 +1412,7 @@ are always available. They are listed here in alphabetical order.
|
||||||
|
|
||||||
|
|
||||||
.. _func-range:
|
.. _func-range:
|
||||||
.. function:: range(stop)
|
.. class:: range(stop)
|
||||||
range(start, stop[, step])
|
range(start, stop[, step])
|
||||||
:noindex:
|
:noindex:
|
||||||
|
|
||||||
|
@ -1659,7 +1659,7 @@ are always available. They are listed here in alphabetical order.
|
||||||
|
|
||||||
|
|
||||||
.. _func-tuple:
|
.. _func-tuple:
|
||||||
.. function:: tuple([iterable])
|
.. class:: tuple([iterable])
|
||||||
:noindex:
|
:noindex:
|
||||||
|
|
||||||
Rather than being a function, :class:`tuple` is actually an immutable
|
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.
|
Loading…
Reference in New Issue