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

Method extend

Lib/xml/etree/ElementTree.py:233–241  ·  view source on GitHub ↗

Append subelements from a sequence. *elements* is a sequence with zero or more elements.

(self, elements)

Source from the content-addressed store, hash-verified

231 self._children.append(subelement)
232
233 def extend(self, elements):
234 """Append subelements from a sequence.
235
236 *elements* is a sequence with zero or more elements.
237
238 """
239 for element in elements:
240 self._assert_is_element(element)
241 self._children.append(element)
242
243 def insert(self, index, subelement):
244 """Insert *subelement* at position *index*."""

Calls 2

_assert_is_elementMethod · 0.95
appendMethod · 0.45