Definitions
Sorry, no definitions found. Check out and contribute to the discussion of this word!
Etymologies
Sorry, no etymologies found.
Support
Help support Wordnik (and make this page ad-free) by adopting the word __init__.
Examples
-
On the other hand, if you are completely explicit and you use the full syntax, by writing the external method as def __init__ (self): print ( 'calling __init__') super (C, self). __init__ () everything will work because you are explicitly telling than the method will be attached to the class
-
For instance, this is a syntax that cannot work: def __init__ (self): print ( 'calling __init__') super (). __init__ () class C (object):
Comments
Log in or sign up to get involved in the conversation. It's quick and easy.