[Python-Dev] PEP: Ordered Class Definition Namespace (original) (raw)
Eric Snow ericsnowcurrently at gmail.com
Tue Jun 7 14:39:06 EDT 2016
- Previous message (by thread): [Python-Dev] PEP: Ordered Class Definition Namespace
- Next message (by thread): [Python-Dev] PEP: Ordered Class Definition Namespace
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Jun 7, 2016 at 11:32 AM, Terry Reedy <tjreedy at udel.edu> wrote:
On 6/7/2016 1:51 PM, Eric Snow wrote:
Note: just to be clear, this PEP is not about changing
type._dict_
toOrderedDict
. 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'>
I mean the latter, "type" -> the class being defined.
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.
That is all correct.
-eric
- Previous message (by thread): [Python-Dev] PEP: Ordered Class Definition Namespace
- Next message (by thread): [Python-Dev] PEP: Ordered Class Definition Namespace
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]