Skip to content

Instantly share code, notes, and snippets.

@jstitch
Created December 12, 2011 18:20
Show Gist options
  • Save jstitch/1468431 to your computer and use it in GitHub Desktop.
Save jstitch/1468431 to your computer and use it in GitHub Desktop.
Python superclass constructor calling, with arguments
class A:
def __init__(self, parama):
self.parama = parama
class B(A):
def __init__(self, parama):
A.__init__(self,parama)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment