[issue23188] Exception chaining should trigger for non-normalised exceptions

Nick Coghlan report at bugs.python.org
Thu Jan 8 09:18:39 CET 2015


Nick Coghlan added the comment:

After looking into this further, PyErr_SetObject (and other APIs like PyErr_SetString which call that internally) aim to handle the chaining automatically, but they don't handle exceptions which haven't been normalized yet.

PyErr_SetObject should probably normalise the exception at the start of the call f ithe exception type is set on the thread state, but not the exception value.

----------
title: Convert _PyErr_ChainExceptions to a public API -> Exception chaining should trigger for non-normalised exceptions
type: enhancement -> behavior

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23188>
_______________________________________


More information about the Python-bugs-list mailing list