Created
September 7, 2012 18:10
-
-
Save funkaoshi/3668265 to your computer and use it in GitHub Desktop.
Python Poll
This file contains 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
If I am making a new class that inherits from an old library that | |
doesn't have object as its base class (doesn't use the new-style | |
classes), is it recommended that I add object as an additional | |
parent like this: | |
Class MyNewClass(OldStyleClass, object): | |
and then use super, or stick to the old style and call the init | |
like: | |
OldStyleClass.__init__(self, ...) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment