En Wed, 07 Apr 2010 17:23:22 -0300, kwatch escribió:
Is it possible to raise exception with custom traceback to specify
file and line?
I'm creating a certain parser.
I want to report syntax error with the same format as other exception.
-
1: def parse(filename):
2: i
Hi all,
Is it possible to raise exception with custom traceback to specify
file and line?
Situation
=
I'm creating a certain parser.
I want to report syntax error with the same format as other exception.
Example
===
parser.py:
-
1: def parse(filename):
2: