[IronPython] Trying to use the library preppy from reportlib in ironpython and silverlight

Michael Foord fuzzyman at voidspace.org.uk
Mon Apr 7 00:59:39 CEST 2008

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

> Thanks,
> Vineet
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

More information about the Ironpython-users mailing list