Class definition attribute order

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Aug 5 02:06:49 EDT 2008


En Tue, 05 Aug 2008 00:05:58 -0300, Michele Simionato  
<michele.simionato at gmail.com> escribió:

> On Aug 5, 4:38 am, "Gabriel Genellina":
>>
>> So the namespace that the metaclass receives when the class is created,  
>> will be some kind of ordered dictionary?
>> Metaclasses are available for a long time ago, but the definition order  
>> is  
>> lost right at the start, when the class body is executed. Will this  
>> step  
>> be improved in Python 3.0 then?
>>
>
> Yep. See http://stacktrace.it/articoli/2008/01/metaclassi-python-3000
> (I am working on an English translation these days,
> but for the moment you can use Google Translator).

Grazie, questo è un modo per praticare il mio italiano!

-- 
Gabriel Genellina




More information about the Python-list mailing list