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

Method iterfind

Lib/xml/etree/ElementTree.py:312–321  ·  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. Return an iterable yielding all matching elements in document order.

(self, path, namespaces=None)

Source from the content-addressed store, hash-verified

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.
314
315 *path* is a string having either an element tag or an XPath,
316 *namespaces* is an optional mapping from namespace prefix to full name.
317
318 Return an iterable yielding all matching elements in document order.
319
320 """
321 return ElementPath.iterfind(self, path, namespaces)
322
323 def clear(self):
324 """Reset element.

Callers 4

test_interfaceMethod · 0.95
test_issue14818Method · 0.45
select_negatedFunction · 0.45
iterfindMethod · 0.45

Calls

no outgoing calls

Tested by 2

test_interfaceMethod · 0.76
test_issue14818Method · 0.36