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-36763: _Py_RunMain() doesn't call Py_Exit() anymore #13390

Merged
merged 1 commit into from
May 17, 2019
Merged

bpo-36763: _Py_RunMain() doesn't call Py_Exit() anymore #13390

merged 1 commit into from
May 17, 2019

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented May 17, 2019

Py_Main() and _Py_RunMain() now return the exitcode rather than
calling Py_Exit(exitcode) when calling PyErr_Print() if the current
exception type is SystemExit and -i command line is used
(core_config.inspect=1).

  • Add _Py_HandleSystemExit()
  • Add pymain_exit_err_print()
  • Add pymain_exit_print()

https://bugs.python.org/issue36763

@vstinner
Copy link
Member Author

@Yhg1s: This PR fix the bugs you told me about, but it doesn't cover the PyRun_SimpleXXX() APIs.

Py_Main() and _Py_RunMain() now return the exitcode rather than
calling Py_Exit(exitcode) when calling PyErr_Print() if the current
exception type is SystemExit.

* Add _Py_HandleSystemExit()
* Add pymain_exit_err_print()
* Add pymain_exit_print()
@vstinner vstinner merged commit 1208328 into python:master May 17, 2019
@vstinner vstinner deleted the pymain_err_print branch May 17, 2019 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants