#line directive

Peter Hansen peter at engcorp.com
Tue Mar 11 09:09:49 EST 2003


zunbeltz wrote:
> 
> Has Python a #line directive like C preprocesor?

The functionality you are looking for is probably included,
but in a different way.  Can you describe what you want to
do with that information?  Check whether a combination of
sys._getframe() and the "inspect" or "traceback" modules 
might not do the job.

-Peter




More information about the Python-list mailing list