I have defined a class called Lineament, which has no class variables - only instance variables, defined and set within __init__(), and later potentially modified by other class methods.

However, one (and only one) of these instance variables is behaving mysteriously like a class variable: all instances of the class are sharing a single copy of the variable, located at the same place in memory.

Is there a common mistake that can result in this behavior, that doesn't involve using class variables - I really have absolutely nothing defined in the class except for methods. The problem shows up regardless of how I name the instance variables (i.e. using name mangling __names or not). The problematic variable consists of a list of objects of type Lineament (the same object class as the one that's giving me problems).

Thanks for any suggestions... sorry I didn't include example code. I haven't been able to boil it down to a minimal example yet.

Zane

--
Zane Selvans
Amateur Earthling
[EMAIL PROTECTED]
303/815-6866
http://zaneselvans.org
PGP Key: 55E0815F








--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to