No macros in Python

Peter Hansen peter at engcorp.com
Sun Dec 15 14:40:37 EST 2002


Mike Meyer wrote:
> 
> Python doesn't have macros. On the other hand, looking at the world
> through OO glasses rather than S-expression glasses means you don't
> need macros as often. But the topic comes up at irregular intervals,
> so someone may eventually come up with a way of doing macros in Python
> that is right - at which point it'll be added.

I haven't heard this expressed as a disadvantage very often, perhaps
not before in this group since I've been reading it.

In what way would macros (as I understand them... from C for example)
improve Python, other than possibly a small improvement in performance?

-Peter



More information about the Python-list mailing list