10000 bpo-17422: slightly more precise language · python/cpython@797244b · GitHub
[go: up one dir, main page]

Skip to content

Commit 797244b

Browse files
committed
bpo-17422: slightly more precise language
1 parent 766b754 commit 797244b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Doc/reference/datamodel.rst

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 0 deletions
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)
0