Smalltalk and Python

Alex Martelli aleaxit at
Fri Dec 15 07:32:56 EST 2000

"Andrew Dalke" <dalke at> wrote in message
news:91c7r4$7a0$1 at
> One packet of syntactic sugar, coming up!
> def make_a(*classes):
>   class make_a:
>     pass
>   make_a.__bases__ = tuple(classes)
>   return make_a()

or, in a similar vein:

def make_a(*classes, **attribs):
    return new.classobj('blob', classes, attribs)()


More information about the Python-list mailing list