Re: sys.tracebacklimit not working in Python 3.2?

2011-06-07 Thread Gabriel Genellina
En Fri, 27 May 2011 17:38:50 -0300, Thorsten Kampe  
 escribió:



sys.tracebacklimit = 0

The 3.2 documentation says "When set to 0 or less, all traceback
information is suppressed and only the exception type and value are
printed". Bug?


Yes; reported at http://bugs.python.org/issue12276

--
Gabriel Genellina

--
http://mail.python.org/mailman/listinfo/python-list


sys.tracebacklimit not working in Python 3.2?

2011-05-27 Thread Thorsten Kampe
Hi,

> type test.py
import sys

sys.tracebacklimit = 0
import doesnotexist

> python test.py
ImportError: No module named doesnotexist

> python3 test.py
Traceback (most recent call last):
  File "test.py", line 4, in 
import doesnotexist
ImportError: No module named doesnotexist

The 3.2 documentation says "When set to 0 or less, all traceback 
information is suppressed and only the exception type and value are 
printed". Bug?

Thorsten
-- 
http://mail.python.org/mailman/listinfo/python-list