reason/history of self

gabor farkas xlat at pobox.sk
Wed Jan 16 05:55:05 EST 2002


hi,


i'm sure this was discussed before, but i cant find it..


why do i have to write self as the first parameter of a method in the 
method-definition?


class......
	def method(self):  <- here
		....
		..

it seems to me as unnecessary, because i have to write it everytime..


bye,
gabor




More information about the Python-list mailing list