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

Stefan Behnel stefan_ml at behnel.de
Sat Mar 29 11:42:08 CET 2008


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: et-find-qname.patch
Type: text/x-patch
Size: 1163 bytes
Desc: not available
Url : http://codespeak.net/pipermail/lxml-dev/attachments/20080329/fec491b2/attachment.bin 


More information about the lxml-dev mailing list