gh-106320: Remove private _PyErr_ChainExceptions() by vstinner · Pull Request #108713 · python/cpython · GitHub
Skip to content

gh-106320: Remove private _PyErr_ChainExceptions()#108713

Merged
vstinner merged 1 commit intopython:mainfrom
vstinner:remove_chain_exc
Aug 31, 2023
Merged

gh-106320: Remove private _PyErr_ChainExceptions()#108713
vstinner merged 1 commit intopython:mainfrom
vstinner:remove_chain_exc

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Aug 31, 2023

Remove _PyErr_ChainExceptions(), _PyErr_ChainExceptions1() and _PyErr_SetFromPyStatus() functions from the public C API.

  • Move the private _PyErr_ChainExceptions() and _PyErr_ChainExceptions1() function to the internal C API (pycore_pyerrors.h).
  • Move the private _PyErr_SetFromPyStatus() to the internal C API (pycore_initconfig.h).
  • No longer export the _PyErr_ChainExceptions() function.
  • Move run_in_subinterp_with_config() from _testcapi to _testinternalcapi.

Remove _PyErr_ChainExceptions(), _PyErr_ChainExceptions1() and
_PyErr_SetFromPyStatus() functions from the public C API.

* Move the private _PyErr_ChainExceptions() and
  _PyErr_ChainExceptions1() function to the internal C API
  (pycore_pyerrors.h).
* Move the private _PyErr_SetFromPyStatus() to the internal C API
  (pycore_initconfig.h).
* No longer export the _PyErr_ChainExceptions() function.
* Move run_in_subinterp_with_config() from _testcapi to
  _testinternalcapi.
@vstinner
Copy link
Copy Markdown
Member Author

@bedevere-bot
Copy link
Copy Markdown

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.

2 participants