-
-
Notifications
You must be signed in to change notification settings - Fork 131
Add a backport of generic NamedTuples
#44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I think this is now ready for review! |
srittau
left a comment
There was a problem hiding this 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.
JelleZijlstra
left a comment
There was a problem hiding this 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>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
|
Thank you! |
|
Thank you! Super excited to see this happen :D |
This PR backports the ability, added in python/cpython#92027, to define generic
NamedTupleclasses. The implementation and the tests are very similar to the implementation on the CPythonmainbranch, with a few tweaks so that it all works on earlier versions of Python as well.#7