Skip to content

Instantly share code, notes, and snippets.

@mittenchops
Created July 11, 2013 14:30
Show Gist options
  • Select an option

  • Save mittenchops/5975966 to your computer and use it in GitHub Desktop.

Select an option

Save mittenchops/5975966 to your computer and use it in GitHub Desktop.
Subclassing in python
class Superclass(object):
def __init__(self):
print 'Do something'
class Subclass(Superclass):
def __init__(self):
super(Subclass, self).__init__()
print 'Do something else'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment