From: Serhiy Storchaka Date: Fri, 21 Oct 2016 14:10:42 +0000 (+0300) Subject: Issue #28410: Added _PyErr_FormatFromCause() -- the helper for raising X-Git-Tag: v3.7.0a1~2176 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=14ab2776321525ac82d0ae170a5e1ab911c914c0;p=thirdparty%2FPython%2Fcpython.git 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] --- 14ab2776321525ac82d0ae170a5e1ab911c914c0