MCPcopy Index your code
hub / github.com/RustPython/RustPython / __replace__

Method __replace__

Lib/test/test_copy.py:931–934  ·  view source on GitHub ↗
(self, **changes)

Source from the content-addressed store, hash-verified

929 self.z = self.x + self.y
930
931 def __replace__(self, **changes):
932 x = changes.get('x', self.x)
933 y = changes.get('y', self.y)
934 return type(self)(x, y)
935
936 attrs = attrgetter('x', 'y', 'z')
937 a = A(11, 22)

Callers 1

Calls 1

getMethod · 0.45

Tested by

no test coverage detected