Skip to content

gh-144321: Fix named tuple bug when input is a non-sequence iterable#144600

Merged
AlexWaygood merged 9 commits into
python:mainfrom
brijkapadia:named-tuple-bug
Feb 11, 2026
Merged

gh-144321: Fix named tuple bug when input is a non-sequence iterable#144600
AlexWaygood merged 9 commits into
python:mainfrom
brijkapadia:named-tuple-bug

Conversation

@brijkapadia

@brijkapadia brijkapadia commented Feb 8, 2026

Copy link
Copy Markdown
Contributor

@bedevere-app

bedevere-app Bot commented Feb 8, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

Comment thread Misc/NEWS.d/next/Library/2026-02-08-17-09-10.gh-issue-144321.w58PhQ.rst Outdated
Comment thread Misc/NEWS.d/next/Library/2026-02-08-17-09-10.gh-issue-144321.w58PhQ.rst Outdated
Comment thread Lib/test/test_typing.py Outdated
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Comment thread Lib/typing.py Outdated
@AlexWaygood AlexWaygood changed the title gh-144321: Fix named tuple bug when input is a generator gh-144321: Fix named tuple bug when input is a non-sequence iterable Feb 8, 2026
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@AlexWaygood AlexWaygood merged commit 17ab556 into python:main Feb 11, 2026
51 checks passed
@brijkapadia brijkapadia deleted the named-tuple-bug branch February 11, 2026 12:51
thunder-coding pushed a commit to thunder-coding/cpython that referenced this pull request Feb 15, 2026
brijkapadia added a commit to brijkapadia/cpython that referenced this pull request Feb 28, 2026
ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants