We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61cbbaa commit c52ab36Copy full SHA for c52ab36
docs/Pyllole/81_Classes.md
@@ -84,11 +84,9 @@ if __name__ == '__main__':
84
85
# Chiama un metodo statico
86
print(Human.grunt()) # => "*grunt*"
87
-
88
- # Non è possibile chiamare il metodo statico con l'istanza dell'oggetto
89
- # poiché i.grunt() metterà automaticamente "self" (l'oggetto i)
90
- # come argomento
91
- print(i.grunt()) # => TypeError: grunt() takes 0 positional arguments but 1 was given
+
+ # I metodi statici possono essere chiamati anche dalle istanze
+ print(i.grunt()) # => "*grunt*"
92
93
# Aggiorna la property (age) di questa istanza
94
i.age = 42
0 commit comments