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

This commit is contained in:
Caleb Donovick 2020-03-06 10:20:48 -08:00 committed by GitHub
parent 9a73705a1d
commit e59334ebc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -1956,7 +1956,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::

View File

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