Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #6429 > unrolled thread
| Started by | Thorsten Kampe <thorsten@thorstenkampe.de> |
|---|---|
| First post | 2011-05-27 22:38 +0200 |
| Last post | 2011-06-07 05:55 -0300 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
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
| From | Thorsten Kampe <thorsten@thorstenkampe.de> |
|---|---|
| Date | 2011-05-27 22:38 +0200 |
| Subject | sys.tracebacklimit not working in Python 3.2? |
| Message-ID | <MPG.284a2a4282a42a09989818@news.individual.de> |
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
[toc] | [next] | [standalone]
| From | "Gabriel Genellina" <gagsl-py2@yahoo.com.ar> |
|---|---|
| Date | 2011-06-07 05:55 -0300 |
| Message-ID | <mailman.2523.1307436749.9059.python-list@python.org> |
| In reply to | #6429 |
En Fri, 27 May 2011 17:38:50 -0300, Thorsten Kampe <thorsten@thorstenkampe.de> 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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web