MCPcopy Index your code
hub / github.com/python/cpython / findall

Method findall

Lib/xml/etree/ElementTree.py:301–310  ·  view source on GitHub ↗

Find all matching subelements by tag name or path. *path* is a string having either an element tag or an XPath, *namespaces* is an optional mapping from namespace prefix to full name. Returns list containing all matching elements in document order.

(self, path, namespaces=None)

Source from the content-addressed store, hash-verified

299 return ElementPath.findtext(self, path, default, namespaces)
300
301 def findall(self, path, namespaces=None):
302 """Find all matching subelements by tag name or path.
303
304 *path* is a string having either an element tag or an XPath,
305 *namespaces* is an optional mapping from namespace prefix to full name.
306
307 Returns list containing all matching elements in document order.
308
309 """
310 return ElementPath.findall(self, path, namespaces)
311
312 def iterfind(self, path, namespaces=None):
313 """Find all matching subelements by tag name or path.

Callers 15

test_pickleMethod · 0.95
process_glossary_nodesFunction · 0.45
runMethod · 0.45
add_annotationsFunction · 0.45
__calc_alt_digitsMethod · 0.45
get_platform_osxFunction · 0.45
_min_indentMethod · 0.45
_pprint_strMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_pickleMethod · 0.76
_min_indentMethod · 0.36
test_help_envMethod · 0.36
test_help_xoptionsMethod · 0.36
test_regexpsMethod · 0.36
test_bug_xmltoolkit28Method · 0.36
test_findallMethod · 0.36