]> granicus.if.org Git - python/commitdiff
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)
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]

1  2 
Objects/unicodeobject.c

Simple merge