Class attributes / methods lost?
Peter Otten
__peter__ at web.de
Mon Mar 1 09:24:37 EST 2010
Gabor Urban wrote:
> I am building a nested data structure with the following compontens:
<snip>
> Any idea is wellcome.
The error messages suggest that you are using classes where you should be
using class instances, but you don't provide the code where this problem
originates.
The code you do give looks like a very literal and incomplete conversion
from Java. Rather than go into the details I suggest that you have a look at
the Tutorial (and PEP 8) before you proceed.
http://docs.python.org/tutorial/index.html
http://www.python.org/dev/peps/pep-0008/
Peter
More information about the Python-list
mailing list