Skip to content

bpo-40334: Support suppressing of multiple optional variables in Pegen #20367

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 24, 2020

Conversation

isidentical
Copy link
Member

@isidentical isidentical commented May 24, 2020

C generator would produce _opt_var_1, _opt_var_2 etc. for multiple optional variables in the same context. This patch makes the C generator to support multiple optional variables.

https://bugs.python.org/issue40334

@pablogsal
Copy link
Member

The title suggest that multiple optional variables do not work, but that's not true isn't it? What happens is that we are not suppressing compiler warnings, no? If I am correct, is ok with merging this without a test

@isidentical isidentical changed the title bpo-40334: Support generation of multiple optional variables in pegen bpo-40334: Support suppressing of multiple optional variables in Pegen May 24, 2020
@pablogsal pablogsal added the needs backport to 3.9 only security fixes label May 24, 2020
@pablogsal pablogsal merged commit cba5031 into python:master May 24, 2020
@miss-islington
Copy link
Contributor

Thanks @isidentical for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-20368 is a backport of this pull request to the 3.9 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label May 24, 2020
miss-islington added a commit that referenced this pull request May 24, 2020
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.

7 participants