MCPcopy Index your code
hub / github.com/python/cpython / __replace__

Method __replace__

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

Source from the content-addressed store, hash-verified

959 self.z = self.x + self.y
960
961 def __replace__(self, **changes):
962 x = changes.get('x', self.x)
963 y = changes.get('y', self.y)
964 return type(self)(x, y)
965
966 attrs = attrgetter('x', 'y', 'z')
967 a = A(11, 22)

Callers 2

Calls 1

getMethod · 0.45

Tested by

no test coverage detected