]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #28410: Added _PyErr_FormatFromCause() -- the helper for raising
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 21 Oct 2016 14:10:42 +0000 (17:10 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Fri, 21 Oct 2016 14:10:42 +0000 (17:10 +0300)
commit14ab2776321525ac82d0ae170a5e1ab911c914c0
treea740811e0c4169a523cf9c878927f72c3283d646
parentc4189a04a8d5fef512db33302f405c9e6170c369
parent467ab194fc6189d9f7310c89937c51abeac56839
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]
Objects/unicodeobject.c