Skip to content

Conversation

@isidentical
Copy link
Member

@isidentical isidentical commented May 6, 2020

  • getopt => argparse switch (for extendability in the future)
  • no old-style globals, used arguments to pass over data
  • Removed limitation of not being able to produce both C and H simultaneously.
    this will make it run faster since it parses asdl once and uses that tree to
    generate both header and c source (and in the future maybe python file)

https://bugs.python.org/issue40528

- getopt => argparse switch (for extendability in the future)
- no old-style globals, used arguments to pass over data
- Removed limitation of not being able to produce both C and H simultaneously.
  this will make it run faster since it parses asdl once and uses that tree to
  generate both header and c source (and in the future maybe python file)
@pablogsal
Copy link
Member

You need to update the windows regen files (PCbuild/regen.vcxproj)

@pablogsal pablogsal self-requested a review May 6, 2020 21:13
@pablogsal pablogsal self-assigned this May 6, 2020
@pablogsal
Copy link
Member

@tonybaloney Can you give us a hand with the PCbuild/regen.vcxproj shenanigans? 😉

@isidentical isidentical requested a review from a team as a code owner May 6, 2020 21:29
@tonybaloney
Copy link
Contributor

@isidentical tested it on VS2019, builds well with the changes 👍

@isidentical
Copy link
Member Author

Thanks @tonybaloney!

@pablogsal
Copy link
Member

Great work @isidentical!

And thanks @tonybaloney for the help :)

@pablogsal pablogsal merged commit 63b8e0c into python:master May 18, 2020
arturoescaip pushed a commit to arturoescaip/cpython that referenced this pull request May 24, 2020
…ythonGH-19968)

- Switch from getopt to argparse.
- Removed the limitation of not being able to produce both C and H simultaneously.

This will make it run faster since it parses the asdl definition once and uses the generated tree to generate both the header and the C source.
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.

5 participants