Doc updates for PEPs 520 and 468.

This commit is contained in:
Eric Snow 2016-09-09 11:22:14 -07:00
parent 6982a4f8f0
commit 68f4dd8b01
2 changed files with 22 additions and 12 deletions

View file

@ -1801,9 +1801,9 @@ included in the class definition (if any) and the resulting object is bound
in the local namespace as the defined class.
When a new class is created by ``type.__new__``, the object provided as the
namespace parameter is copied to a standard Python dictionary and the original
object is discarded. The new copy becomes the :attr:`~object.__dict__` attribute
of the class object.
namespace parameter is copied to a new ordered mapping and the original
object is discarded. The new copy is wrapped in a read-only proxy, which
becomes the :attr:`~object.__dict__` attribute of the class object.
.. seealso::