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

Function _append_child

Lib/xml/dom/minidom.py:285–293  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

283
284
285def _append_child(self, node):
286 # fast path with less checks; usable by DOM builders if careful
287 childNodes = self.childNodes
288 if childNodes:
289 last = childNodes[-1]
290 node.previousSibling = last
291 last.nextSibling = node
292 childNodes.append(node)
293 node.parentNode = self
294
295
296def _write_data(writer, text, attr):

Callers 8

pi_handlerMethod · 0.90
comment_handlerMethod · 0.90
start_element_handlerMethod · 0.90
start_element_handlerMethod · 0.90
appendChildMethod · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…