Skip to content

bpo-40334: Simplify type handling in the PEG c_generator #19818

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

Merged
merged 1 commit into from
May 1, 2020

Conversation

pablogsal
Copy link
Member

@pablogsal pablogsal commented Apr 30, 2020

Follow up of #19775. With this PR almost all the type-deducing code in add_var can be eliminated :)

As a bonus, this PR eliminates some extra void* in the generated code :)

https://bugs.python.org/issue40334

@pablogsal pablogsal requested a review from lysnikolaou April 30, 2020 17:23
Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

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

Excellent insight!

Copy link
Member

@lysnikolaou lysnikolaou left a comment

Choose a reason for hiding this comment

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

Truly great improvements, this and #19775.

@gvanrossum
Copy link
Member

There's a conflict. Looks like you have to run make regen-pegen again.

@pablogsal pablogsal merged commit b796b3f into python:master May 1, 2020
@pablogsal pablogsal deleted the bpo-40334-types branch May 1, 2020 11:32
@pablogsal
Copy link
Member Author

Thanks both for the review! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants