Andrew Dalke <[EMAIL PROTECTED]> writes: > Mac wrote: >> Is there a way to mimic the behaviour of C/C++'s preprocessor for >> macros? > > There are no standard or commonly accepted ways of doing that. > > You could do as Jordan Rastrick suggested and write your own sort > of preprocessor, or use an existing one.
I've never tried it with python, but the C preprocessor is available as 'cpp' on most Unix systesm. Using it on languages other than C has been worthwhile on a few occasions. It would certainly seem to directly meet the OP's needs. <mike -- Mike Meyer <[EMAIL PROTECTED]> http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list