Vineet Jain (gmail) wrote: > The following code is in preppy to give syntax errors in the templates: > > import traceback > tb = traceback.format_tb(tb) > tb = string.join(tb, "\n") > # how to get the line in the script for the error? > raise ValueError, "bad script code for %s\n%s\n\n%s\n%s\n%s" % ( > compilemode, ddblock, t, v, tb) > > ironpython does not have the module traceback. Is there some other way to do > this? >
The traceback module works fine with IronPython. You have to make sure it (and preferably the whole Python standard library) is on your path. Michael Foord http://www.ironpythoninaction.com > Thanks, > > Vineet > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > _______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
