Class Variable Inheritance

Jeremy Bowers jerf at jerf.org
Wed Dec 8 22:52:15 EST 2004


On Wed, 08 Dec 2004 16:49:34 -0900, Brian "bojo" Jones wrote:
> class a(object):
> 
> 	def __init__(self):
> 		self.map = mapper()
> 		print 'called a'

What is the advantage of this over

def __init__(self):
	self.map = []

?



More information about the Python-list mailing list