
Nov. 6, 2013
6:25 p.m.
Stefan Behnel, 06.11.2013 18:36:
Brian Bird, 06.11.2013 16:01:
Could anyone confirm if this is really a bug?
Definitely. Thanks for investigating it, and sorry for not responding earlier. Your short test code makes this very easy to reproduce, and Amaury's hint at the XPath parser dict should make it easy to track down the problem in the code.
https://github.com/lxml/lxml/commit/f7d2682a511253445c128137f205bfb4d6973cbb It turned out that the parser dict setup risked using the wrong dict anyway, so the safest fix was to not use a dictionary at all. Thanks again for analysing this bug. Stefan