| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -975,6 +975,10 @@ New Features | |||
| 975 | 975 | This is less error prone and a bit more efficient. | |
| 976 | 976 | (Contributed by Mark Shannon in :gh:`101578`.) | |
| 977 | 977 | ||
| 978 | + * Add ``_PyErr_ChainExceptions1``, which takes an exception instance, | ||
| 979 | + to replace the legacy-API ``_PyErr_ChainExceptions``, which is now | ||
| 980 | + deprecated. (Contributed by Mark Shannon in :gh:`101578`.) | ||
| 981 | + | ||
| 978 | 982 | * Add :c:func:`PyException_GetArgs` and :c:func:`PyException_SetArgs` | |
| 979 | 983 | as convenience functions for retrieving and modifying | |
| 980 | 984 | the :attr:`~BaseException.args` passed to the exception's constructor. | |
@@ -1125,6 +1129,8 @@ Deprecated | |||
| 1125 | 1129 | * :c:func:`!PyErr_Display` is deprecated. Use :c:func:`PyErr_DisplayException` | |
| 1126 | 1130 | instead. (Contributed by Irit Katriel in :gh:`102755`). | |
| 1127 | 1131 | ||
| 1132 | + * ``_PyErr_ChainExceptions`` is deprecated. Use ``_PyErr_ChainExceptions1`` | ||
| 1133 | + instead. (Contributed by Irit Katriel in :gh:`102192`.) | ||
| 1128 | 1134 | ||
| 1129 | 1135 | Removed | |
| 1130 | 1136 | ------- | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -98,7 +98,7 @@ PyAPI_FUNC(void) _PyErr_GetExcInfo(PyThreadState *, PyObject **, PyObject **, Py | |||
| 98 | 98 | ||
| 99 | 99 | /* Context manipulation (PEP 3134) */ | |
| 100 | 100 | ||
| 101 | - PyAPI_FUNC(void) _PyErr_ChainExceptions(PyObject *, PyObject *, PyObject *); | ||
| 101 | + Py_DEPRECATED(3.12) PyAPI_FUNC(void) _PyErr_ChainExceptions(PyObject *, PyObject *, PyObject *); | ||
| 102 | 102 | PyAPI_FUNC(void) _PyErr_ChainExceptions1(PyObject *); | |
| 103 | 103 | ||
| 104 | 104 | /* Like PyErr_Format(), but saves current exception as __context__ and | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,2 @@ | |||
| 1 | + Deprecated ``_PyErr_ChainExceptions`` in favour of | ||
| 2 | + ``_PyErr_ChainExceptions1``. | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments