Skip to content

Instantly share code, notes, and snippets.

@itsmemattchung
Created November 25, 2015 16:13
Show Gist options
  • Save itsmemattchung/a8577c4bd082f02dbc46 to your computer and use it in GitHub Desktop.
Save itsmemattchung/a8577c4bd082f02dbc46 to your computer and use it in GitHub Desktop.
how to make mistakes in python subclass
class MyOtherClass(object):
def do_something(self):
self.__do_a_new_step()
self.__do_one_more_step()
# Should be subclassing from MyClass
class MyOtherClass(MyClass):
def do_something(self):
self.__do_a_new_step()
self.__do_one_more_step()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment