Python equivalent of #line?

Gerald Klix Gerald.Klix at klix.ch
Sun May 25 08:35:12 EDT 2003


Sorry, there is no way to influence the compilers notion of the current 
line, but you can patch the generated code.

HTH
Gerald

Edward C. Jones wrote:
> C has a preprocessor command
>   #line n "filename"
> Can I do this in Python?
> 
> Ed Jones
> 





More information about the Python-list mailing list