mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Doc updates for PEPs 520 and 468.
This commit is contained in:
parent
6982a4f8f0
commit
68f4dd8b01
2 changed files with 22 additions and 12 deletions
|
@ -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::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue