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

Function _replace

Lib/collections/__init__.py:463–467  ·  view source on GitHub ↗
(self, /, **kwds)

Source from the content-addressed store, hash-verified

461 'or iterable')
462
463 def _replace(self, /, **kwds):
464 result = self._make(_map(kwds.pop, field_names, self))
465 if kwds:
466 raise TypeError(f'Got unexpected field names: {list(kwds)!r}')
467 return result
468
469 _replace.__doc__ = (f'Return a new {typename} object replacing specified '
470 'fields with new values')

Callers

nothing calls this directly

Calls 2

listClass · 0.85
_makeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…