Hi,

class MyClass:
    list = []

you have "list" defined as a classmember, not an instancemember. So "list" ist defined ONCE for all instances.


Try this instead:

class MyClass:
    def __init__(self):
        self.list = []
[...]

and use self.list ...

HtH, Roland
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to