[lxml-dev] ElementTree.find does not accept QName objects.

John Krukoff jkrukoff at ltgc.com
Tue Apr 1 22:00:03 CEST 2008


On Sat, 2008-03-29 at 11:42 +0100, Stefan Behnel wrote:
> Hi,
> 
> John Krukoff wrote:
> > Since I was the one that complained about the find method on Elements
> > not accepting QNames, it's probably not surprising that I expected them
> > to work with the ElementTree find method as well. Instead an unsliceable
> > error is thrown, due to the value being expected to be a string
> 
> Sure, here's the obvious patch.
> 
> BTW, I expect ET to have the same problem here.
> 
> Stefan
> 

Thanks for your always quick response. Yeah, ET has the same issue, but
then it doesn't accept QNames for element.find either. Only one of many
reasons I gave up on ET compatibility a long time ago.

-- 
John Krukoff <jkrukoff at ltgc.com>
Land Title Guarantee Company



More information about the lxml-dev mailing list