MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / clone

Method clone

suds/sax/attribute.py:52–62  ·  view source on GitHub ↗

Clone this object. @param parent: The parent for the clone. @type parent: L{element.Element} @return: A copy of this object assigned to the new parent. @rtype: L{Attribute}

(self, parent=None)

Source from the content-addressed store, hash-verified

50 self.setValue(value)
51
52 def clone(self, parent=None):
53 """
54 Clone this object.
55 @param parent: The parent for the clone.
56 @type parent: L{element.Element}
57 @return: A copy of this object assigned to the new parent.
58 @rtype: L{Attribute}
59 """
60 a = Attribute(self.qname(), self.value)
61 a.parent = parent
62 return a
63
64 def qname(self):
65 """

Callers

nothing calls this directly

Calls 2

qnameMethod · 0.95
AttributeClass · 0.70

Tested by

no test coverage detected