Skip to content

Instantly share code, notes, and snippets.

@reorx
Created December 8, 2012 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reorx/4240166 to your computer and use it in GitHub Desktop.
Save reorx/4240166 to your computer and use it in GitHub Desktop.
class CMixin(object):
def do_something(self):
# do something here
pass
class AHandler(BaseHandler, CMixin):
def get(self):
# ...
self.do_something()
# ...
class BHandler(BaseHandler, CMixin):
def get(self):
# ...
self.do_something()
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment