Better traceback information?
Olivier Dagenais
olivierS.dagenaisP at canadaA.comM
Sun Oct 22 23:20:22 EDT 2000
Wicked, thanks! I can forego the line number for now, since it will become
a non-issue in the near future...
--
----------------------------------------------------------------------
Olivier A. Dagenais - Software Architect and Developer
"Someone called 'Type your name here' is impersonating me on the
internet and is posting exactly the same things I am posting!"
> > In my app, I exec code and class definitions that I just fished out from
a
> > database. The problem is, if an exception is thrown from inside one of
> > these definitions, the traceback usually gives me '<string>' as the
>
> One way to attach the 'filename' you want to the strings you're
> about to exec is to compile them -- e.g.:
> Changing the linenumber seems harder -- something for the
> [in]famous bytecodehacks, maybe...?
More information about the Python-list
mailing list