Class Variable Question

Romuald Texier rtexier at elikya.com
Mon Apr 9 12:56:48 EDT 2001


Robert Johnson wrote:


> Would this create a variable "var1" inside the class even though the
> creator of the class never intended it to be there 

Not exactly: the new variable is not created inside the class but just in 
the _instance_. The class definition and other instances are left untouched.

-- 
Romuald Texier



More information about the Python-list mailing list