Skip to content

Instantly share code, notes, and snippets.

@funkaoshi
Created September 7, 2012 18:10
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 funkaoshi/3668265 to your computer and use it in GitHub Desktop.
Save funkaoshi/3668265 to your computer and use it in GitHub Desktop.
Python Poll
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