Skip to content

GH-145247: Implement _PyTuple_FromPair - #145325

Merged
vstinner merged 20 commits into
python:mainfrom
sergey-miryanov:145247-pytuple-from-pair
Mar 10, 2026
Merged

GH-145247: Implement _PyTuple_FromPair#145325
vstinner merged 20 commits into
python:mainfrom
sergey-miryanov:145247-pytuple-from-pair

Conversation

@sergey-miryanov

@sergey-miryanovsergey-miryanov commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

@bedevere-appbedevere-appBot mentioned this pull request Feb 27, 2026

@eendebakpteendebakpt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To minor comments on the test, but overall this looks good!

Comment threadLib/test/test_capi/test_tuple.py Outdated
Comment threadLib/test/test_capi/test_tuple.py Outdated
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Comment threadLib/test/test_capi/test_tuple.py Outdated
Comment threadObjects/tupleobject.c Outdated
Comment threadModules/_testinternalcapi/tuple.c Outdated
Comment threadInclude/internal/pycore_tuple.h Outdated
Comment threadLib/test/test_capi/test_tuple.py Outdated
Comment threadLib/test/test_capi/test_tuple.py Outdated
Comment threadLib/test/test_capi/test_tuple.py Outdated
Comment threadModules/_testinternalcapi/tuple.c Outdated
sergey-miryanovand others added 3 commits March 5, 2026 10:32
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
@sergey-miryanov

Copy link
Copy Markdown
ContributorAuthor

@eendebakpt@vstinner Thanks for review! Could you please take another look?

@sergey-miryanov
sergey-miryanov marked this pull request as ready for review March 5, 2026 20:57

@johnslavikjohnslavik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll try to take a closer look soon.

Comment threadObjects/tupleobject.c Outdated
Comment threadObjects/tupleobject.c Outdated
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>

@vstinnervstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment threadObjects/tupleobject.c Outdated
Comment threadObjects/tupleobject.c Outdated
Comment threadObjects/tupleobject.c Outdated
Comment threadObjects/tupleobject.c Outdated
Comment threadObjects/tupleobject.c Outdated
sergey-miryanovand others added 3 commits March 7, 2026 16:26
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Comment threadModules/_testinternalcapi/tuple.c Outdated
Comment threadModules/_testinternalcapi/tuple.c Outdated
@sergey-miryanov

Copy link
Copy Markdown
ContributorAuthor

@markshannon Could you please take a look?

@vstinner
vstinner merged commit 478a315 into python:mainMar 10, 2026
66 checks passed
@vstinner

Copy link
Copy Markdown
Member

Merged, thanks.

ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
Implement _PyTuple_FromPair() and _PyTuple_FromPairSteal().
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@sergey-miryanov@vstinner@eendebakpt@kumaraditya303@johnslavik