Feature or enhancement
types.SimpleNamespace supports copy.replace() (gh-109174), but optparse.Values, which holds parsed option values as attributes, does not.
I propose to support it: copy.replace(values, verbose=True) returns a new Values object with the specified attributes replaced or added.
Linked PRs
Feature or enhancement
types.SimpleNamespacesupportscopy.replace()(gh-109174), butoptparse.Values, which holds parsed option values as attributes, does not.I propose to support it:
copy.replace(values, verbose=True)returns a newValuesobject with the specified attributes replaced or added.Linked PRs