◐ Shell
clean mode source ↗

bpo-40334: Simplify type handling in the PEG c_generator by pablogsal · Pull Request #19818 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@pablogsal

@pablogsal pablogsal commented

Apr 30, 2020

edited

Loading

Copy link Copy Markdown

Member

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

@gvanrossum gvanrossum left a comment

Copy link Copy Markdown

Member

Choose a reason for hiding this comment

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

Excellent insight!

@lysnikolaou lysnikolaou left a comment

Copy link Copy Markdown

Member

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 Copy Markdown

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 Copy Markdown

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

Reviewers

@gvanrossum gvanrossum gvanrossum approved these changes

@lysnikolaou lysnikolaou lysnikolaou approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@pablogsal @gvanrossum @lysnikolaou @bedevere-bot