Feature or enhancement
types.SimpleNamespace supports copy.replace() (gh-109174), but argparse.Namespace, its analogue in argparse, does not.
I propose to support it with the same semantics: copy.replace(args, verbose=True) returns a new namespace with the specified attributes replaced or added.
Linked PRs
Feature or enhancement
types.SimpleNamespacesupportscopy.replace()(gh-109174), butargparse.Namespace, its analogue inargparse, does not.I propose to support it with the same semantics:
copy.replace(args, verbose=True)returns a new namespace with the specified attributes replaced or added.Linked PRs