Browse Source
Issue #28410: Added _PyErr_FormatFromCause() -- the helper for raising
Issue #28410: Added _PyErr_FormatFromCause() -- the helper for raising
new exception with setting current exception as __cause__.
_PyErr_FormatFromCause(exception, format, args...) is equivalent to Python
raise exception(format % args) from sys.exc_info()[1]
pull/9921/head
7 changed files with 70 additions and 53 deletions
-
11Include/pyerrors.h
-
4Lib/test/test_capi.py
-
6Modules/zipimport.c
-
22Objects/abstract.c
-
32Objects/genobject.c
-
7Objects/unicodeobject.c
-
41Python/errors.c
Write
Preview
Loading…
Cancel
Save
Reference in new issue