Commonly-used names in the Python standard library

Chris Angelico rosuav at gmail.com
Fri Feb 21 05:49:41 EST 2014


On Fri, Feb 21, 2014 at 9:26 PM, Marko Rauhamaa <marko at pacujo.net> wrote:
> Chris Angelico <rosuav at gmail.com>:
>
>> How does C let you create new keywords?
>
> With #define. Nowhere near as elegant (flexible, hygienic) as in Lisp,
> but used to create new syntax:

That can't create new syntax, though. All it can do is create a thing
that looks like a symbol or a function call and plonks a bit of code
in at that point. That's all. It's more akin to creating a function
that's able to work with blocks of unexecuted code.

ChrisA



More information about the Python-list mailing list