[issue9375] ElementPath parser in ElementTree 1.3 does not reject "element//" as invalid
Stefan Behnel
report at bugs.python.org
Sun Jul 25 09:43:43 CEST 2010
Stefan Behnel <scoder at users.sourceforge.net> added the comment:
The parser actually starts with this code:
def iterfind(elem, path, namespaces=None):
# compile selector pattern
if path[-1:] == "/":
path = path + "*" # implicit all (FIXME: keep this?)
IMHO, the 'FIXME' is worth revisiting.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9375>
_______________________________________
More information about the Python-bugs-list
mailing list