New submission from Matthias Bussonnier:

As far as I can tell, http://bugs.python.org/issue17911 made a couple of 
function in traceback ignore their first arguments (etype) and infer the type 
from the second one (evalue). 

(In git 6bc2c1e7 and 2f0441f0 respectively).

At least print_exception and format_exception are affected.

This likely affect http://bugs.python.org/issue26389 (who wish to expand same 
API to remove these parameters).

And inconsistency with `format_exception_only` which does need `etype` should 
be checked. 

If etype is a deprecated parameter it should be noted, and should likely raise 
a DeprecationWarning as well when set.

----------
assignee: docs@python
components: Documentation
messages: 288617
nosy: docs@python, mbussonn
priority: normal
severity: normal
status: open
title: Document that print/format_exception ignore etype
versions: Python 3.5, Python 3.6, Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29660>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to