Concerning classes (Newb question)

Cyrille Lavigne dontreply at caramail.com
Mon Aug 2 13:47:14 EDT 2004


Hi!
I'm very new to the art of programming and I just learn OOP
in python. I want to know why the following bit of code crash.
Code:
class Exemple:
	def __init__(self):
		self.list=[]
		self.var1=3

c=Exemple
print c.list, c.var1

Thanks



More information about the Python-list mailing list