-
-
Save maluta/316440 to your computer and use it in GitHub Desktop.
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
class Foo: | |
def __init__(self,p): | |
print "__init2__" | |
def __init__(self): # tem prioridade | |
print "__init__" | |
def function(self, param): | |
print "function with 1 parameter" | |
def function(self, param1, param2): | |
print "function with 2 parameters" | |
def function(self): # a mesma coisa | |
print "function without parameters" | |
x = Foo() | |
x.function() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment