Supporting #line directives

Warren Postma embed at geocities.com
Mon Mar 6 10:32:07 EST 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

I suggest you look at how they write "source level debuggers" in Python.
Python has so much introspection that I'm sure you could write at least your
own debugger and get some of the functionality you want not from macros, but
from introspection.

Warren





More information about the Python-list mailing list