Why new Python 2.5 feature "class C()" return old-style class ?

looping kadeko at gmail.com
Tue Apr 11 10:42:36 EDT 2006


Georg Brandl wrote:
> If you have many classes in a module, putting
>
> __metaclass__ = type
>
> at the top can save you these keystrokes.
>
> Georg

We could do that ? Nice trick that I've never thoughts about myself.

Thanks Georg.




More information about the Python-list mailing list