A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2016-June/144864.html below:

[Python-Dev] PEP: Ordered Class Definition Namespace

[Python-Dev] PEP: Ordered Class Definition Namespace [Python-Dev] PEP: Ordered Class Definition NamespaceTerry Reedy tjreedy at udel.edu
Tue Jun 7 14:32:14 EDT 2016
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

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4