Identifying a class type - bad practice?

greg greg at cosc.canterbury.ac.nz
Wed Aug 19 20:51:36 EDT 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