Skip to content

Instantly share code, notes, and snippets.

/gist:189df066ed264fae8ea2 Secret
Created Feb 28, 2013

What would you like to do?
class Foo(object):
def __call__(self):
raise NotImplementedError
def do_something_when_called(self):
# do work for all derived classes
class Bar(Foo):
def __call__(self):
# do more work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.