New submission from Martina Oefelein <[EMAIL PROTECTED]>: In the language reference, compound statements, class definitions: """ Programmer’s note: Variables defined in the class definition are class can be set in a method with self.name = value. """
This sentence doesn't is not even grammatically valid. It seems that there is something missing after "are class". See: http://docs.python.org/dev/3.0/reference/compound_stmts.html#class- definitions In 2.5, the corresponding text is: """ Programmer's note: Variables defined in the class definition are class variables; they are shared by all instances. To define instance variables, they must be given a value in the __init__() method or in another method. """ ---------- assignee: georg.brandl components: Documentation messages: 68908 nosy: georg.brandl, oefe severity: normal status: open title: Language reference, class definitions: missing text in "Programmer's note" versions: Python 3.0 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3229> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com