Please translate this easy snip of C++ to Python

Cesar Rabak csrabak at uol.com.br
Tue Feb 6 23:53:28 CET 2001


Thomas Wouters wrote:
> 
> Note how Python lacks a preprocessor and macros :) People occasionally rally
> for a macro preprocessor, but usually not of the C type. Being fairly
> ignorant in languages featuring macros other than the C style, I can't
> really say what they *are* rallying for, but apparently there are sane macro
> preprocessors in existance, somewhere :)

Yep! If I felt need of one, I would craft macros in M4. But them to have
your scripts you´ll need to explicitly run some 'wrapper' (shell) script
or a Makefile. After all this, would it be still worthwhile?



More information about the Python-list mailing list