[lxml-dev] objectify.ObjectPath("wrongroot.a.b")(root, None) should not raise an exception

Stefan Behnel stefan_ml at behnel.de
Wed Aug 20 20:55:10 CEST 2008


Hi,

Holger Joukl wrote:
>  using an absolute ObjectPath with a wrong root element currently raises 
> ValueError even if a default is given:
> [...]
>  Whereas ObjectPath returns a given default if any other 
> element of the path is not in the tree:

>  I'll change this in trunk to gracefully return the default, and add some 
> tests

Please do.

Stefan



More information about the lxml-dev mailing list