Skip to content

Commit 6df0c47

Browse files
bpo-17422: slightly more precise language (GH-18682)
(cherry picked from commit e59334e) Co-authored-by: Caleb Donovick <[email protected]>
1 parent 0c71770 commit 6df0c47

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Doc/reference/datamodel.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1951,7 +1951,7 @@ namespace returned by ``__prepare__`` is passed in to ``__new__``, but when
19511951
the final class object is created the namespace is copied into a new ``dict``.
19521952

19531953
If the metaclass has no ``__prepare__`` attribute, then the class namespace
1954-
is initialised as an empty :func:`dict`.
1954+
is initialised as an empty ordered mapping.
19551955

19561956
.. seealso::
19571957

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The language reference no longer restricts default class namespaces to dicts
2+
only.

0 commit comments

Comments
 (0)