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

Function select_negated

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

Source from the content-addressed store, hash-verified

262 if elem.get(key) == value:
263 yield elem
264 def select_negated(context, result):
265 for elem in result:
266 if (attr_value := elem.get(key)) is not None and attr_value != value:
267 yield elem
268 return select_negated if '!=' in signature else select
269 if signature == "-" and not re.match(r"\-?\d+$", predicate[0]):
270 # [tag]

Callers

nothing calls this directly

Calls 4

itertextMethod · 0.80
getMethod · 0.45
iterfindMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…