MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / copy

Method copy

tools/python-3.11.9-amd64/Lib/xml/etree/ElementTree.py:192–203  ·  view source on GitHub ↗

Return copy of current element. This creates a shallow copy. Subelements will be shared with the original tree.

(self)

Source from the content-addressed store, hash-verified

190 return self.__class__(tag, attrib)
191
192 def copy(self):
193 """Return copy of current element.
194
195 This creates a shallow copy. Subelements will be shared with the
196 original tree.
197
198 """
199 warnings.warn(
200 "elem.copy() is deprecated. Use copy.copy(elem) instead.",
201 DeprecationWarning
202 )
203 return self.__copy__()
204
205 def __copy__(self):
206 elem = self.makeelement(self.tag, self.attrib)

Callers 3

startPrefixMappingMethod · 0.45
parseMethod · 0.45
_includeFunction · 0.45

Calls 2

__copy__Method · 0.95
warnMethod · 0.45

Tested by

no test coverage detected