On 6/7/2016 1:51 PM, Eric Snow wrote:
Note: just to be clear, this PEP is *not* about changing
> ``type.__dict__`` to ``OrderedDict``.
By 'type', do you mean the one and one objected named 'type or the class
being defined? To be really clear, will the following change?
>>> class C: pass
>>> type(C.__dict__)
<class 'mappingproxy'>
If the proposal only affects (slows) the class definition process, and
then only minimally, and has no effect on class use, then +1 on being
able to avoid metaclass and prepare for its most common current usage.
--
Terry Jan Reedy
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com