question: metaclass and C - a new general style

Martin von Loewis loewis at informatik.hu-berlin.de
Tue Nov 27 09:37:15 CET 2001


cuiod-tec at web.de (Jens Gelhaar) writes:

>    I dont like to create an class and make instance of it, to get
> callable object and use it as ancestor. 

In the original hook, you couldn't use a Python object as the base
class, only a C function, so it was restricted to C only.

Today, you don't have to create a class and make an instance of it. A
plain Python function would do as well.

Of course, you still don't have to like it :-)

>    What do you thing about it?

If you want to use proper metaclasses, I think you should use Python 2.2.

Regards,
Martin



More information about the Python-list mailing list