Skip to content

Commit c9c17cc

Browse files
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 ee9ff05) Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent 296d45e commit c9c17cc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Doc/library/functions.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ are always available. They are listed here in alphabetical order.
886886

887887

888888
.. _func-memoryview:
889-
.. function:: memoryview(obj)
889+
.. class:: memoryview(obj)
890890
:noindex:
891891

892892
Return a "memory view" object created from the given argument. See
@@ -1319,7 +1319,7 @@ are always available. They are listed here in alphabetical order.
13191319

13201320

13211321
.. _func-range:
1322-
.. function:: range(stop)
1322+
.. class:: range(stop)
13231323
range(start, stop[, step])
13241324
:noindex:
13251325

@@ -1556,7 +1556,7 @@ are always available. They are listed here in alphabetical order.
15561556

15571557

15581558
.. _func-tuple:
1559-
.. function:: tuple([iterable])
1559+
.. class:: tuple([iterable])
15601560
:noindex:
15611561

15621562
Rather than being a function, :class:`tuple` is actually an immutable
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Tag memoryview, range, and tuple as classes, the same as list, etcetera, in
2+
the library manual built-in functions list.

0 commit comments

Comments
 (0)