redirecting stdout
Marco Herrn
herrn at gmx.net
Wed Nov 27 17:37:05 EST 2002
Hi,
I am redirecting my output to a file via:
sys.stderr= open('out.txt','a', 0)
All exceptions are handled like this:
try:
...
except Exception, detail:
print detail
That works. But I am missing the line numbers. How can I get to the line
numbers in exceptions? And is there a good documentation of exception
handling in python availabe? I just found very short ones.
Thanks in advance
Marco
--
Marco Herrn herrn at gmx.net
(GnuPG/PGP-signed and crypted mail preferred)
Key ID: 0x94620736
More information about the Python-list
mailing list