MCPcopy Index your code
hub / github.com/RustPython/RustPython / extend

Method extend

Lib/xml/etree/ElementTree.py:236–244  ·  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

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

Calls 2

_assert_is_elementMethod · 0.95
appendMethod · 0.45