MCPcopy Create free account
hub / github.com/pybind/pybind11 / clone

Method clone

tests/test_class_sh_trampoline_unique_ptr.py:10–13  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

8 return 10 + self.get_val()
9
10 def clone(self):
11 cloned = MyClass()
12 cloned.set_val(self.get_val() + 3)
13 return cloned
14
15
16def test_m_clone():

Callers 1

test_m_cloneFunction · 0.45

Calls 1

MyClassClass · 0.70

Tested by

no test coverage detected