[issue24724] Element.findall documentation misleading
Martin Panter
report at bugs.python.org
Fri Jul 31 02:47:36 CEST 2015
Martin Panter added the comment:
How about something like:
'''
:meth:`Element.findall` finds all elements matching a path expression; in this example, all <country> children of *root*. meth:`Element.find` finds the *first* matching element, in this example the first <rank> child. . . .
'''
Also, perhaps it would be good to change findall() to iterfind(), which is a newer API.
----------
nosy: +vadmium
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24724>
_______________________________________
More information about the Python-bugs-list
mailing list