Skip to content

Instantly share code, notes, and snippets.

@davidevans
davidevans / gist:5870445
Created June 26, 2013 19:04
delayed decorator
class X():
def inherited_func(self, func):
raise NotImplemented
def x_decorator(func):
def handler(self, *args,**kwargs):
print "In X handler"
self.inherited_func(func)(*args,**kwargs)
return handler