The idea of the class is to be able to create a "tree". Where each node can have subnodes, which in turn can have their subnodes...Are you creating a tree to represent XML data? There are many packages available that do this. You might want to look at ElementTree which is one of the easiest to use. In fact, even if you aren't trying to represent XML you might find ElementTree useful.
http://effbot.org/zone/element.htm
Kent
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor