Feature or enhancement
Proposal:
This issue is to make the concept of "named tuple" support the __replace__ protocol.
collections.namedtuple and typing.NamedTuple already support the __replace__ protocol in:
PyStructSequences are also named tuples but they do not support the __replace__ protocol yet.
It would be convenient if PyStructSequence be supported in copy.replace().
Has this already been discussed elsewhere?
I have already discussed this feature proposal on Discourse
Links to previous discussion of this feature:
Linked PRs
Feature or enhancement
Proposal:
This issue is to make the concept of "named tuple" support the
__replace__protocol.collections.namedtupleandtyping.NamedTuplealready support the__replace__protocol in:PyStructSequences are also named tuples but they do not support the__replace__protocol yet.It would be convenient if
PyStructSequencebe supported incopy.replace().Has this already been discussed elsewhere?
I have already discussed this feature proposal on Discourse
Links to previous discussion of this feature:
typing.NamedTuplewithcopy.replace#109956Linked PRs