Identifying a class type - bad practice?

greg greg at cosc.canterbury.ac.nz
Thu Aug 20 02:51:36 CEST 2009


James Harris wrote:
> I don't know yet whether it will be
> easier to modify the tree or to create a new one for each phase.

You can create a new tree using this style as
well. Just have each method create and return a
new node instead of modifying the existing one.

-- 
Greg



More information about the Python-list mailing list