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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22169>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to