Skip to content
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

bpo-32030: Cleanup pymain_main() #4935

Merged
merged 1 commit into from
Dec 20, 2017
Merged

bpo-32030: Cleanup pymain_main() #4935

merged 1 commit into from
Dec 20, 2017

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Dec 20, 2017

  • Reorganize pymain_main() to make the code more flat
  • Clear configurations before pymain_update_sys_path()
  • Mark Py_FatalError() and _Py_FatalInitError() with _Py_NO_RETURN
  • Replace _PyMain.run_code variable with a new RUN_CODE() macro

https://bugs.python.org/issue32030

* Reorganize pymain_main() to make the code more flat
* Clear configurations before pymain_update_sys_path()
* Mark Py_FatalError() and _Py_FatalInitError() with _Py_NO_RETURN
* Replace _PyMain.run_code variable with a new RUN_CODE() macro
* Move _PyMain.cf into a local variable in pymain_run_python()
@vstinner vstinner merged commit 1976086 into python:master Dec 20, 2017
@vstinner vstinner deleted the pymain branch December 20, 2017 00:42
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.

3 participants