]> granicus.if.org Git - python/commit
bpo-36763: Rework _PyInitError API (GH-13031)
authorVictor Stinner <vstinner@redhat.com>
Wed, 1 May 2019 03:35:33 +0000 (05:35 +0200)
committerGitHub <noreply@github.com>
Wed, 1 May 2019 03:35:33 +0000 (05:35 +0200)
commitdb7197543112954b0912e3d46e39fefcb1c3b950
tree0c82232775c6b1a03671054f9e70f2bb99e6adc9
parentc4e671eec20dfcb29b18596a89ef075f826c9f96
bpo-36763: Rework _PyInitError API (GH-13031)

* 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.
Include/cpython/coreconfig.h
Modules/getpath.c
Modules/main.c
Python/bootstrap_hash.c
Python/coreconfig.c
Python/frozenmain.c
Python/preconfig.c
Python/pylifecycle.c