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

Method __setitem__

Lib/xml/etree/ElementTree.py:211–217  ·  view source on GitHub ↗
(self, index, element)

Source from the content-addressed store, hash-verified

209 return self._children[index]
210
211 def __setitem__(self, index, element):
212 if isinstance(index, slice):
213 for elt in element:
214 self._assert_is_element(elt)
215 else:
216 self._assert_is_element(element)
217 self._children[index] = element
218
219 def __delitem__(self, index):
220 del self._children[index]

Callers

nothing calls this directly

Calls 1

_assert_is_elementMethod · 0.95

Tested by

no test coverage detected