On Sat, Jul 18, 2015 at 10:40 AM, Terry Reedy <tjre...@udel.edu> wrote:
> If children are not always instances of type(self), as when a tree has
> separate Node and Leaf classes, then recursive calls to Node instances must
> be separated from non-recursive Leaf calls before replacing the recursive
> calls.

More serious concern: If it's possible for one of the children to be
an arbitrary subclass of that type, it could have overridden the
setvalue method. To maintain the expectations, you absolutely have to
do the full lookup and pass the message down the chain.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to