Skip to content

Commit e59334e

Browse files
authored
bpo-17422: slightly more precise language (GH-18682)
1 parent 9a73705 commit e59334e

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
@@ -1956,7 +1956,7 @@ namespace returned by ``__prepare__`` is passed in to ``__new__``, but when
19561956
the final class object is created the namespace is copied into a new ``dict``.
19571957

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

19611961
.. seealso::
19621962

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)