bug/poor tracebacks while importing code
Mark McEahern
marklists at mceahern.com
Wed Oct 2 14:13:33 EDT 2002
The code I previously posted was wrong--I was typing it by-hand instead of
copying it into the message:
$ cat a.py
import b
$ cat b.py
def foo():
try:
x = 1/0
except ValueError, e:
pass
foo()
$ python a.py
Traceback (most recent call last):
File "a.py", line 1, in ?
import b
File "b.py", line 7, in ?
foo()
File "b.py", line 3, in foo
x = 1/0
ZeroDivisionError: integer division or modulo by zero
More information about the Python-list
mailing list