Skip to content

Commit ee9ff05

Browse files
authored
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.
1 parent d9e561d commit ee9ff05

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
@@ -952,7 +952,7 @@ are always available. They are listed here in alphabetical order.
952952

953953

954954
.. _func-memoryview:
955-
.. function:: memoryview(obj)
955+
.. class:: memoryview(obj)
956956
:noindex:
957957

958958
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.
14081408

14091409

14101410
.. _func-range:
1411-
.. function:: range(stop)
1411+
.. class:: range(stop)
14121412
range(start, stop[, step])
14131413
:noindex:
14141414

@@ -1655,7 +1655,7 @@ are always available. They are listed here in alphabetical order.
16551655

16561656

16571657
.. _func-tuple:
1658-
.. function:: tuple([iterable])
1658+
.. class:: tuple([iterable])
16591659
:noindex:
16601660

16611661
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)