[Python-checkins] bpo-17422: slightly more precise language (GH-18682)

Miss Islington (bot) webhook-mailer at python.org
Fri Mar 6 13:26:57 EST 2020


https://github.com/python/cpython/commit/6df0c47669031c6a8e9b1a07ec2c5813e4c10ee0
commit: 6df0c47669031c6a8e9b1a07ec2c5813e4c10ee0
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-03-06T10:26:52-08:00
summary:

bpo-17422: slightly more precise language (GH-18682)

(cherry picked from commit e59334ebc9308b0f3ad048ef293c6b49e6456d1a)

Co-authored-by: Caleb Donovick <cdonovick at users.noreply.github.com>

files:
A Misc/NEWS.d/next/Documentation/2020-02-27-17-35-27.bpo-17422.eS1hVh.rst
M Doc/reference/datamodel.rst

diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index 06f4992cf544a..1530775839bb6 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -1951,7 +1951,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
index 0000000000000..bbec5ec0eee65
--- /dev/null
+++ b/Misc/NEWS.d/next/Documentation/2020-02-27-17-35-27.bpo-17422.eS1hVh.rst
@@ -0,0 +1,2 @@
+The language reference no longer restricts default class namespaces to dicts
+only.



More information about the Python-checkins mailing list