[New-bugs-announce] [issue22169] sys.tracebacklimit = 0 does not work as documented in 3.x
Orson Peters
report at bugs.python.org
Fri Aug 8 05:24:54 CEST 2014
New submission from Orson Peters:
According to the documentation of sys.tracebacklimit, setting it to 0 or less would assure "all traceback information is suppressed and only the exception type and value are printed".
This is not the case:
$ python -c "import sys; sys.tracebacklimit = 0; raise Exception()"
Exception
$ python3 -c "import sys; sys.tracebacklimit = 0; raise Exception()"
Traceback (most recent call last):
File "<string>", line 1, in <module>
Exception
----------
components: Interpreter Core
messages: 225055
nosy: orlp
priority: normal
severity: normal
status: open
title: sys.tracebacklimit = 0 does not work as documented in 3.x
versions: Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22169>
_______________________________________
More information about the New-bugs-announce
mailing list