Christian Heimes added the comment: It's a classic problem for new Python developers. You have declared a mutable object at class level. styles and widgets are the same object for all instances of Widget and Container. You have to create them inside the initializer.
Try class Widget: def __init__(self): self.styles = {} Next time please use the mailing list instead of the bug tracker to get help. ---------- nosy: +tiran resolution: -> invalid status: open -> closed __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2064> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com