Chris Rebert a écrit : (snip)
To access class-level variables from within instance methods of the class, you have 2 options: A. Use the class name, i.e. Abc.message B. Reference the class indirectly, i.e. self.__class__.message
Or even simpler - *if* there's no synonym instance attribute: => self.messageAttribute lookup will try to resolve the attribute name on the class (and it's parent classes) if it's not found on the instance.
-- http://mail.python.org/mailman/listinfo/python-list