-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Add a backport of generic NamedTuple
s
#44
Conversation
I think this is now ready for review! |
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.
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 <[email protected]>
Thank you! |
Thank you! Super excited to see this happen :D |
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 CPythonmain
branch, with a few tweaks so that it all works on earlier versions of Python as well.#7