mirror of
https://github.com/python/cpython.git
synced 2025-09-06 08:51:39 +00:00
gh-132781: Cleanup Code Related to NotShareableError (gh-132782)
The following are added to the internal C-API: * _PyErr_FormatV() * _PyErr_SetModuleNotFoundError() * _PyXIData_GetNotShareableErrorType() * _PyXIData_FormatNotShareableError() We also drop _PyXIData_lookup_context_t and _PyXIData_GetLookupContext().
This commit is contained in:
parent
4c20f46fa0
commit
cd9536a087
14 changed files with 322 additions and 177 deletions
|
@ -60,6 +60,7 @@ extern PyObject* _PyErr_SetImportErrorWithNameFrom(
|
|||
PyObject *,
|
||||
PyObject *,
|
||||
PyObject *);
|
||||
extern int _PyErr_SetModuleNotFoundError(PyObject *name);
|
||||
|
||||
|
||||
/* runtime lifecycle */
|
||||
|
@ -113,6 +114,7 @@ extern void _PyErr_SetObject(
|
|||
PyObject *value);
|
||||
|
||||
extern void _PyErr_ChainStackItem(void);
|
||||
extern void _PyErr_ChainExceptions1Tstate(PyThreadState *, PyObject *);
|
||||
|
||||
PyAPI_FUNC(void) _PyErr_Clear(PyThreadState *tstate);
|
||||
|
||||
|
@ -148,6 +150,12 @@ PyAPI_FUNC(PyObject*) _PyErr_Format(
|
|||
const char *format,
|
||||
...);
|
||||
|
||||
PyAPI_FUNC(PyObject*) _PyErr_FormatV(
|
||||
PyThreadState *tstate,
|
||||
PyObject *exception,
|
||||
const char *format,
|
||||
va_list vargs);
|
||||
|
||||
extern void _PyErr_NormalizeException(
|
||||
PyThreadState *tstate,
|
||||
PyObject **exc,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue