All pastes #925450 Raw Edit

argh Python metaclasses

public text v1 · immutable
·published 2008-03-03 00:51 UTC
rendered paste body
class Foo(type):
    def __init__(cls):
        print 'class defined!'

class Bar(object):
    __metaclasss__ = Foo