Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address code review
  • Loading branch information
corona10 committed May 18, 2023
commit 19918cf5dff8d8ecf8ae057e3e71b1b090de3de4
72 changes: 9 additions & 63 deletions Modules/_testcapi/clinic/exceptions.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Modules/_testcapi/exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,12 @@ _testcapi_make_exception_with_doc_impl(PyObject *module, const char *name,
_testcapi.exc_set_object
exception as exc: object
obj: object
/
[clinic start generated code]*/

static PyObject *
_testcapi_exc_set_object_impl(PyObject *module, PyObject *exc, PyObject *obj)
/*[clinic end generated code: output=34c8c7c83e5c8463 input=d2ccbcb97e67d3c2]*/
/*[clinic end generated code: output=34c8c7c83e5c8463 input=fc530aafb1b0a360]*/
{
PyErr_SetObject(exc, obj);
return NULL;
Expand Down