A seemingly easy thing which i cant get around.
registry  =  {}
def register(cls):
    registry[cls.__clsid__] = cls
    print cls
    return cls
@register
class Foo(object):
    __clsid__ = "123-456"
    def bar(self):
        pass
c=Foo()
d=Foo()
e=Foo()
Output:
<class '__main__.Foo'>
Now i expect decorator to be called 3 times.Why has it been called only once.
 
     
    