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

Method __copy__

Lib/xml/etree/ElementTree.py:189–194  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

187 return self.__class__(tag, attrib)
188
189 def __copy__(self):
190 elem = self.makeelement(self.tag, self.attrib)
191 elem.text = self.text
192 elem.tail = self.tail
193 elem[:] = self
194 return elem
195
196 def __len__(self):
197 return len(self._children)

Callers

nothing calls this directly

Calls 1

makeelementMethod · 0.95

Tested by

no test coverage detected