Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #6429
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Thorsten Kampe <thorsten@thorstenkampe.de> |
| Newsgroups | comp.lang.python |
| Subject | sys.tracebacklimit not working in Python 3.2? |
| Date | Fri, 27 May 2011 22:38:50 +0200 |
| Lines | 22 |
| Message-ID | <MPG.284a2a4282a42a09989818@news.individual.de> (permalink) |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="us-ascii" |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net Q2txExfjRxtOOj7aqLMu/AQcENqx2PfNhxf/zsoPmmI0dahtw= |
| Cancel-Lock | sha1:5O4lcOxmPfIj9dg6IeNenLo/EWs= |
| User-Agent | MicroPlanet-Gravity/3.0.4 |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:6429 |
Show key headers only | View raw
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