Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #6429
| From | Thorsten Kampe <thorsten@thorstenkampe.de> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | sys.tracebacklimit not working in Python 3.2? |
| Date | 2011-05-27 22:38 +0200 |
| Message-ID | <MPG.284a2a4282a42a09989818@news.individual.de> (permalink) |
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
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
sys.tracebacklimit not working in Python 3.2? Thorsten Kampe <thorsten@thorstenkampe.de> - 2011-05-27 22:38 +0200 Re: sys.tracebacklimit not working in Python 3.2? "Gabriel Genellina" <gagsl-py2@yahoo.com.ar> - 2011-06-07 05:55 -0300
csiph-web