]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-17422: slightly more precise language (GH-18682)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 6 Mar 2020 18:25:51 +0000 (10:25 -0800)
committerNed Deily <nad@python.org>
Tue, 10 Mar 2020 05:48:00 +0000 (01:48 -0400)
(cherry picked from commit e59334ebc9308b0f3ad048ef293c6b49e6456d1a)

Co-authored-by: Caleb Donovick <cdonovick@users.noreply.github.com>
Doc/reference/datamodel.rst
Misc/NEWS.d/next/Documentation/2020-02-27-17-35-27.bpo-17422.eS1hVh.rst [new file with mode: 0644]

index b682465d3ddc87cdb1a18bfc1bf58340e332fa8a..1212dc61f2d246c65f2d2a5baa6b77dc950a8044 100644 (file)
@@ -1937,7 +1937,7 @@ namespace returned by ``__prepare__`` is passed in to ``__new__``, but when
 the final class object is created the namespace is copied into a new ``dict``.
 
 If the metaclass has no ``__prepare__`` attribute, then the class namespace
-is initialised as an empty :func:`dict`.
+is initialised as an empty ordered mapping.
 
 .. seealso::
 
diff --git a/Misc/NEWS.d/next/Documentation/2020-02-27-17-35-27.bpo-17422.eS1hVh.rst b/Misc/NEWS.d/next/Documentation/2020-02-27-17-35-27.bpo-17422.eS1hVh.rst
new file mode 100644 (file)
index 0000000..bbec5ec
--- /dev/null
@@ -0,0 +1,2 @@
+The language reference no longer restricts default class namespaces to dicts
+only.