Another way to spell __metaclass__ ?

Thomas Heller theller at python.net
Fri Dec 13 13:34:04 EST 2002


Mike Dean <klaatu at evertek.net> writes:

> Martin v. Löwis <martin at v.loewis.de> wrote:
> > [various ways of specifying metaclasses]
> > 
> > There are certainly other ways to write this down; I don't know what the
> > most intuitive and least hacky way is.
> 
> How about something like this:
> 
> class IUnknown is interface:
>     ....
> 
> or:
> 
> class(interface) IUnkwown:
>     yada yada yada

Didn't Michael Hudson some time ago have a patch which allowed
to write something like this?

class IUnknown(bases) [interface]:
   ...

or

def IUnknown() [a, b, c]:
   ...

Thomas



More information about the Python-list mailing list