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

Function _clear_id_cache

Lib/xml/dom/minidom.py:1549–1555  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

1547 self.tagName = state
1548
1549def _clear_id_cache(node):
1550 if node.nodeType == Node.DOCUMENT_NODE:
1551 node._id_cache.clear()
1552 node._id_search_stack = None
1553 elif node.ownerDocument:
1554 node.ownerDocument._id_cache.clear()
1555 node.ownerDocument._id_search_stack= None
1556
1557class Document(Node, DocumentLS):
1558 __slots__ = ('_elem_info', 'doctype',

Callers 15

insertBeforeMethod · 0.85
appendChildMethod · 0.85
replaceChildMethod · 0.85
removeChildMethod · 0.85
_set_nameMethod · 0.85
_set_valueMethod · 0.85
_set_prefixMethod · 0.85
removeNamedItemMethod · 0.85
removeNamedItemNSMethod · 0.85
setNamedItemMethod · 0.85
__delitem__Method · 0.85
setAttributeMethod · 0.85

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…