sys.tracebacklimit not working in Python 3.2?

T

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 <module>
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,610
Members
45,255
Latest member
TopCryptoTwitterChannels

Latest Threads

Top