-
Notifications
You must be signed in to change notification settings - Fork 900
refactor #[new] code generation
#5551
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
|
@Icxolu I cut the diff down here, it should be a reviewable size now except there's the failing |
|
Think this should be good to review and get the rest of the |
Icxolu
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.
Thanks for reworking, I think this looks great now 💯
Prompted by the question in #5421 (comment) and also my own struggles cleaning up #4951
This moves
__new__to be implemented using our "slot" method machinery. As a follow up sometime I will probably try and apply similar treatment to__call__.