Skip to content

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 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.

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