Skip to content

Conversation

@AlexWaygood
Copy link
Member

@AlexWaygoodAlexWaygood commented May 20, 2022

This PR backports the ability, added in python/cpython#92027, to define generic NamedTuple classes. The implementation and the tests are very similar to the implementation on the CPython main branch, with a few tweaks so that it all works on earlier versions of Python as well.

#7

@AlexWaygoodAlexWaygood marked this pull request as ready for review May 20, 2022 19:48
@AlexWaygood
Copy link
MemberAuthor

I think this is now ready for review!

Copy link
Collaborator

@srittausrittau left a comment

Choose a reason for hiding this comment

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

I don't really claim to know what's going in this code, but everything seems reasonable and makes sense to me, but I have a few small remarks.

Copy link
Member

@JelleZijlstraJelleZijlstra left a comment

Choose a reason for hiding this comment

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

Thank you! I have a few small comments.

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
@JelleZijlstraJelleZijlstra merged commit 7c28357 into python:mainMay 26, 2022
@JelleZijlstra
Copy link
Member

Thank you!

@AlexWaygoodAlexWaygood deleted the namedtuple branch May 26, 2022 04:48
@AlexWaygood
Copy link
MemberAuthor

Thank you! Super excited to see this happen :D

Sign up for freeto 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.

3 participants

@AlexWaygood@JelleZijlstra@srittau