Please translate this easy snip of C++ to Python

bowman bowman at montana.com
Sun Feb 4 15:58:17 EST 2001


Fredrik Lundh <fredrik at effbot.org> wrote in message news:BTif6.12144
>
> (iirc, bjarne thinks that real C++ programmers shouldn't
> use the preprocessor at all, but what does he know...)

"The C preprocessor is a powerful but blunt tool, however, and macros are a
dangerous way to program because they change the lexical structure of the
program underfoot. Let the language proper do the work."

Kernighan & Pike, _The Practice of Programming_.


iirc, either K or R have mentioned they would have left macros out of the
language if they could have forseen the clever and wondrous uses that would
be found for them.






More information about the Python-list mailing list