Skip to content

bpo-36763: Rework _PyInitError API#13031

Merged
vstinner merged 1 commit intopython:masterfrom
vstinner:apiv2_patch2
May 1, 2019
Merged

bpo-36763: Rework _PyInitError API#13031
vstinner merged 1 commit intopython:masterfrom
vstinner:apiv2_patch2

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented May 1, 2019

  • Remove _PyInitError.user_err field and _Py_INIT_USER_ERR() macro:
    use _Py_INIT_ERR() instead. _Py_ExitInitError() now longer calls
    abort() on error: exit with exit code 1 instead.
  • Add _PyInitError._type private field
  • exitcode field type is now unsigned int on Windows
  • Rename prefix field to _func
  • Rename msg field to err_msg

https://bugs.python.org/issue36763

* Remove _PyInitError.user_err field and _Py_INIT_USER_ERR() macro:
  use _Py_INIT_ERR() instead. _Py_ExitInitError() now longer calls
  abort() on error: exit with exit code 1 instead.
* Add _PyInitError._type private field
* exitcode field type is now unsigned int on Windows
* Rename prefix field to _func
* Rename msg field to err_msg
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