Macro preprocessor.

Greg Ewing greg at cosc.canterbury.ac.nz
Wed Aug 11 21:16:28 EDT 1999


Sounds useful, although there are a lot of C-like things
in there (#include, braces, etc.) that would look somewhat
out of place in a Python program.

A truly Pythonic macro processor would use indentation for
delimiting macro definitions, and would use the existing
module system for managing namespaces, etc.

Also, what about line numbers? As far as I know, Python
has no equivalent of a #line directive, so keeping error
messages in sync with the source file is going to be
rather difficult.

-- 
Greg Ewing, Computer Science Dept, | The address below is not spam-
University of Canterbury,	   | protected, so as not to waste
Christchurch, New Zealand	   | the time of Guido van Rossum.
greg at cosc.canterbury.ac.nz




More information about the Python-list mailing list