LinuxLudus: Pytoni e bottiglie

Valerio Pachera sirio81@gmail.com
Mer 18 Giu 2008 16:52:37 CEST


Da una guida in rete:

"The first argument of every class method, including __init__, is
always a reference to the current instance of the class. By
convention, this argument is always named self. In the __init__
method, self refers to the newly created object; in other class
methods, it refers to the instance whose method was called. "

Sinceramente mi sfugge la sfumatura menzionata nell'utlima frase: che
differenza c'è fra il self del metodo __init__ rispetto agli altri
metodi?


Maggiori informazioni sulla lista linuxludus