classification
Title: Document that print/format_exception ignore etype
Type: Stage: patch review
Components: Documentation Versions: Python 3.7, Python 3.6, Python 3.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, mbussonn
Priority: normal Keywords:

Created on 2017-02-27 01:21 by mbussonn, last changed 2017-05-17 20:45 by Mariatta.

Pull Requests
URL Status Linked Edit
PR 344 open mbussonn, 2017-02-27 15:37
Messages (1)
msg288617 - (view) Author: Matthias Bussonnier (mbussonn) * Date: 2017-02-27 01:21
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.
History
Date User Action Args
2017-05-17 20:45:30Mariattasetstage: patch review
2017-02-27 15:37:37mbussonnsetpull_requests: + pull_request297
2017-02-27 01:21:38mbussonncreate