Add a note about compact dict to PEP 520.

This commit is contained in:
ericsnowcurrently 2016-09-08 15:22:33 -07:00 committed by GitHub
parent 23a4fbca5b
commit 9bae12b428
1 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,10 @@ Additionally, this PEP requires that the default class definition
namespace be ordered (e.g. ``OrderedDict``) by default. The long-
lived class namespace (``__dict__``) will remain a ``dict``.
Note: since compact dict has landed in 3.6, __definition_order__
has been removed. cls.__dict__ now mostly accomplishes the same
thing instead.
Motivation
==========