]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-34118: memoryview, range, and tuple are classes (GH-17761)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 30 Dec 2019 22:24:27 +0000 (14:24 -0800)
committerGitHub <noreply@github.com>
Mon, 30 Dec 2019 22:24:27 +0000 (14:24 -0800)
Tag memoryview, range, and tuple as classes, the same as list, etcetera, in
the library manual built-in functions list.
(cherry picked from commit ee9ff05ec22ecd47dbffdd361967ccd55963dad2)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
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 7968eef4fb96bd6061bfd0c18409b85038ee245a..6feb26c4f25a650891d91e7a6d40c48b7483f0fb 100644 (file)
@@ -950,7 +950,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
@@ -1412,7 +1412,7 @@ are always available.  They are listed here in alphabetical order.
 
 
 .. _func-range:
-.. function:: range(stop)
+.. class:: range(stop)
               range(start, stop[, step])
    :noindex:
 
@@ -1659,7 +1659,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.