get/set

William Dode wilk at flibuste.net
Fri May 10 12:44:36 EDT 2002


hi,

coming from java, i use to do a lot of get set method and make all the
variable as private.

class Toto:
	def getA(self): return self._a
	def setA(self,v): self._a=v
	...

Shall i do like that in python ?

bye

-- 
William Dodé - Informaticien Indépendant
http://www.flibuste.net



More information about the Python-list mailing list