About Michele Simionato's "classinitializer" decorator

imho certo at comeno.it
Mon May 26 14:09:31 EDT 2008


Michele Simionato ha scritto:
> On May 26, 7:10 pm, imho <ce... at comeno.it> wrote:
>> Hi all.
>> I just send this post as a comment to the third part of Michele
>> Simionato's article about metaprogramming techniques at:
>>
>> http://www.ibm.com/developerworks/linux/library/l-pymeta3.html?S_TACT...
>>
>> I found extremely useful the classinitializer "trick".
> 
> I never use it. Too clever. I am waiting for class decorators
> in Python 2.6.

Uhm... I suspected that :-)

>> I was thinking
>> over the caveat not to call a class initializer after the _metaclass_
>> hook (an exception being raised in that case).
>> Am I wrong if I state there's a plain solution to this ?
> 
> I think your solution is fine. Still, consider waiting for
> class decorators ;)
> 
>        Michele Simionato

Of course, I stand waiting here :-)

Thanks, Diego.




More information about the Python-list mailing list