ex_ottoyuhr wrote: > class TreeCommand: > opcode = 0 > children = [] > def __init__(self, anOpcode) : > opcode = anOpcode > opcode and children in this case is more like "class" variable in C++. If you want "instance" variable, you need to do it as self.opcode, self.children, in all methods.