pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: https://github.com/python/cpython/issues/110222

ps://github.githubassets.com/assets/repository-6ec84ae2261fecf8.css" /> Add support of PyStructSequence in copy.replace() · Issue #110222 · python/cpython · GitHub
Skip to content

Add support of PyStructSequence in copy.replace() #110222

@XuehaiPan

Description

@XuehaiPan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





      Check this box to remove all script contents from the fetched content.



      Check this box to remove all images from the fetched content.


      Check this box to remove all CSS styles from the fetched content.


      Check this box to keep images inefficiently compressed and original size.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy