[Python-Dev] PEP: Ordered Class Definition Namespace
steve at pearwood.info
Tue Jun 7 21:09:57 EDT 2016
On Tue, Jun 07, 2016 at 11:39:06AM -0700, Eric Snow wrote:
> 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__`` 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'>
> I mean the latter, "type" -> the class being defined.
Could you clarify that in the PEP please? Like Terry, I too found it
unclear. I think there are a couple of places where you refer to `type`
and it isn't clear whether you mean builtins.type or something else.
More information about the Python-Dev