[issue26389] Expand traceback module API to accept just an exception as an argument

Matthias Bussonnier report at bugs.python.org
Mon Feb 27 10:44:30 EST 2017


Matthias Bussonnier added the comment:

> Another point is that it may be better to keep the existing parameter name “value”, rather than (eventually?) replacing it with “exc”. I think both of these things could be accomplished by juggling the “value” and “etype” parameters:

I agreed, and that what I would have done outside of CPython, but that felt like this kind of juggling was frowned upon. 

> The disadvantage of any of these changes is that we may want to maintain support for the old signature while Python 2 remains alive.

Your example does not seem to break the old signature. Or I fail to see how.

If that way would be accepted I'm happy to implement it.

----------

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


More information about the Python-bugs-list mailing list