Skip to content

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()
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