cpython/Lib/collections
Serhiy Storchaka 6f3c138dfa
gh-108751: Add copy.replace() function (GH-108752)
It creates a modified copy of an object by calling the object's
__replace__() method.

It is a generalization of dataclasses.replace(), named tuple's _replace()
method and replace() methods in various classes, and supports all these
stdlib classes.
2023-09-06 23:55:42 +03:00
..
__init__.py gh-108751: Add copy.replace() function (GH-108752) 2023-09-06 23:55:42 +03:00
abc.py