Class definition attribute order

Michele Simionato michele.simionato at gmail.com
Tue Aug 5 01:53:45 EDT 2008


On Aug 5, 7:47 am, Terry Reedy <tjre... at udel.edu> wrote:
>
> Bfiefly, as I understood the discussion some months ago: In 2.x, the
> class body is executed in a local namespace implemented as a normal dict
> and *then* passed to the metaclass.  In 3.0, the metaclass gets brief
> control *before* execution so, among other possibilities, it can
> substitute an (insertion) ordered dict for the local namespace.  I will
> leave the details to Michele's article and its eventual translation.
>
> tjr

BTW, since I do not really follow python-dev, do you know
if some consensus was reached on the issue of adding an ordered dict
implementation to the standard library?



More information about the Python-list mailing list