Python equivalent of #line?
Steven Taschuk
staschuk at telusplanet.net
Mon May 26 02:23:46 EDT 2003
Quoth Thomas Guettler:
[...]
> I think automatically creating python code is a bad idea. I once had
> to deal with an old project which stored data in the syntax of a
> programming language. It is hell. Data should be in a format suitable
> for data.
Code generation makes sense in some situations; Knuth's "literate
programming" methodology comes to mind. (And having line numbers
refer to the original source makes good sense there.)
--
Steven Taschuk staschuk at telusplanet.net
Every public frenzy produces legislation purporting to address it.
(Kinsley's Law)
More information about the Python-list
mailing list