]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-34118: memoryview, range, and tuple are classes (GH-17761)
authorTerry Jan Reedy <tjreedy@udel.edu>
Mon, 30 Dec 2019 22:16:43 +0000 (17:16 -0500)
committerGitHub <noreply@github.com>
Mon, 30 Dec 2019 22:16:43 +0000 (17:16 -0500)
Tag memoryview, range, and tuple as classes, the same as list, etcetera, in
the library manual built-in functions list.

Doc/library/functions.rst
Misc/NEWS.d/next/IDLE/2019-12-30-16-44-07.bpo-34118.FaNW0a.rst [new file with mode: 0644]

index 5abf978c88eec44f52bad2cb5a7c52910b6f027b..dc3391ffe882deca47638ba77107a915636e8d5c 100644 (file)
@@ -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
diff --git a/Misc/NEWS.d/next/IDLE/2019-12-30-16-44-07.bpo-34118.FaNW0a.rst b/Misc/NEWS.d/next/IDLE/2019-12-30-16-44-07.bpo-34118.FaNW0a.rst
new file mode 100644 (file)
index 0000000..ce95eb5
--- /dev/null
@@ -0,0 +1,2 @@
+Tag memoryview, range, and tuple as classes, the same as list, etcetera, in
+the library manual built-in functions list.