New submission from Gabriel Genellina <gagsl-...@yahoo.com.ar>: Python 3.x doesn't honor sys.tracebacklimit=0
According to http://docs.python.org/py3k/library/sys.html#sys.tracebacklimit when set to 0, it should not print any stack trace, but it does. Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win 32 Type "help", "copyright", "credits" or "license" for more information. p3> import sys p3> sys.tracebacklimit = 0 p3> p3> def f(x): ... return f(x-1) if x else 0/0 ... p3> f(5) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<stdin>", line 2, in f File "<stdin>", line 2, in f File "<stdin>", line 2, in f File "<stdin>", line 2, in f File "<stdin>", line 2, in f File "<stdin>", line 2, in f ZeroDivisionError: division by zero p3> ---------- components: Interpreter Core files: tracebacklimitbug.py messages: 137792 nosy: gagenellina priority: normal severity: normal status: open title: 3.x ignores sys.tracebacklimit=0 versions: Python 3.1, Python 3.2 Added file: http://bugs.python.org/file22269/tracebacklimitbug.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12276> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com