Feature or enhancement
email.policy.Policy.clone() already has the semantics of copy.replace(), but the class does not support the protocol.
I propose to add __replace__ = clone, so that copy.replace(policy, max_line_length=100) works like policy.clone(max_line_length=100).
Linked PRs
Feature or enhancement
email.policy.Policy.clone()already has the semantics ofcopy.replace(), but the class does not support the protocol.I propose to add
__replace__ = clone, so thatcopy.replace(policy, max_line_length=100)works likepolicy.clone(max_line_length=100).Linked PRs