problem manipulating a list belonging to a class

Lie Ryan lie.1296 at gmail.com
Sun Nov 22 22:55:28 EST 2009


Marc Leconte wrote:
> class Toto(object):
> 	def __init__(self, number, mylist=[]):
> 		self.number=number
> 		self.mylist=mylist
> 		pass
> 	pass

Why are you using pass to end your blocks?



More information about the Python-list mailing list