MCPcopy Create free account
hub / github.com/bterwijn/memory_graph / custom_copy

Method custom_copy

images/copy_method.py:14–18  ·  view source on GitHub ↗

Copies 'digits' but shares 'letters'.

(self)

Source from the content-addressed store, hash-verified

12 self.letters = ['x', 'y']
13
14 def custom_copy(self):
15 """ Copies 'digits' but shares 'letters'. """
16 c = copy.copy(self)
17 c.digits = copy.copy(self.digits)
18 return c
19
20a = My_Class()
21b = a.custom_copy()

Callers 1

copy_method.pyFile · 0.45

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected