Created
November 25, 2015 16:13
-
-
Save itsmemattchung/a8577c4bd082f02dbc46 to your computer and use it in GitHub Desktop.
how to make mistakes in python subclass
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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