The need to put "self" in every method

Fernando M. fernandomirandamuro at gmail.com
Tue May 31 11:45:45 EDT 2005


Hi,

i was just wondering about the need to put "self" as the first
parameter in every method a class has because, if it's always needed,
why the obligation to write it? couldn't it be implicit?

Or is it a special reason for this being this way?

Thanks.




More information about the Python-list mailing list