Some metaclass questions
public python v1 · immutable# Is this the simplest way to create a bunch of classes that automagically # announce their definition?class MetaFoo(type): def __init__(cls, name, bases, dct): print cls.__name__ + ' defined!'class Foo(object): __metaclass__ = MetaFoo # Is there any way I can get a reference to Foo here (i.e. while its being # defined?)