any macro-like construct/technique/trick?
Mike Meyer
mwm at mired.org
Sun Jun 5 00:06:21 EDT 2005
Andrew Dalke <dalke at dalkescientific.com> 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 <mwm at mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
More information about the Python-list
mailing list