Supporting #line directives

Andrew Csillag drew.csillag at
Mon Mar 6 15:54:24 CET 2000

I've lately been using python as a target language for various purposes
and I was wondering if anybody has thought of supporting something like
C's #line directives which would make it possible to (without hacking an
exception renderer to badly) show the lines from the original source
file and not the generated python code.  Looking at the existing code it
would appear to be nontrivial to implement (or a patch would have been
attached <wink>).

Or am I the only one?


More information about the Python-list mailing list