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

Function select

Lib/xml/etree/ElementPath.py:118–121  ·  view source on GitHub ↗
(context, result)

Source from the content-addressed store, hash-verified

116 # It can be a surprise that '*' includes those, but there is no
117 # justification for '{*}*' doing the same.
118 def select(context, result):
119 for elem in result:
120 if _isinstance(elem.tag, _str):
121 yield elem
122 elif tag == '{}*':
123 # Any tag that is not in a namespace.
124 def select(context, result):

Callers 4

iterfindFunction · 0.70
_copyFunction · 0.50
globMethod · 0.50
globMethod · 0.50

Calls 9

select_childFunction · 0.85
get_parent_mapFunction · 0.85
listClass · 0.85
itertextMethod · 0.80
iterMethod · 0.45
getMethod · 0.45
findMethod · 0.45
findallMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…