Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
Labels
type-featureA feature request or enhancement
@XuehaiPan

Description

@XuehaiPan

Feature or enhancement

Proposal:

This issue is to make the concept of"named tuple" support the__replace__ protocol.

collections.namedtuple andtyping.NamedTuple already support the__replace__ protocol in:

PyStructSequences are alsonamed tuples but they do not support the__replace__ protocol yet.

It would be convenient ifPyStructSequence be 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:

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp