Verfasst: Montag 16. April 2007, 17:40
Falls Du 42 als Ausgabe haben wolltest, dann fehlt ein ``self`` vor dem `x`. Es wird weder automatisch im Objekt oder seiner Klasse nachgeschaut.
Seit 2002 Diskussionen rund um die Programmiersprache Python
https://www.python-forum.de/
The scope of names defined in a class block is limited to the class block; it does not extend to the code blocks of methods.