mirror of https://github.com/python/cpython
bpo-17422: slightly more precise language (GH-18682)
This commit is contained in:
parent
9a73705a1d
commit
e59334ebc9
|
@ -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::
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
The language reference no longer restricts default class namespaces to dicts
|
||||
only.
|
Loading…
Reference in New Issue