[issue14098] provide public C-API for reading/setting sys.exc_info()
report at bugs.python.org
Thu Feb 23 11:09:22 CET 2012
Stefan Behnel <scoder at users.sourceforge.net> added the comment:
I wonder if these functions should have an error return value, i.e. return -1 on failure. They'd "never" fail in CPython, but other implementations may want to report failures, in case their internal implementation is more involved. OTOH, documenting that they may fail (even though they won't) means that users will have to deal with errors in potentially tricky situations.
Amaury, any comments?
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list