Éric Araujo <mer...@netwok.org> added the comment: What this part means is: “If you create an instance of C named c, and get c.count, it will get the attribute count defined on C.” IOW: You can get a class variable from any instance.
In the example, the code in __init__ cannot assign to self.count, because it wants to increment the attribute on the class, not on the instance. This is very well explained in Dive Into Python. Please experiment in a shell and ask on appropriate venues after this message. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11318> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com