Commonly-used names in the Python standard library

Chris Angelico rosuav at gmail.com
Fri Feb 21 09:21:18 CET 2014


On Fri, Feb 21, 2014 at 6:21 PM, Marko Rauhamaa <marko at pacujo.net> wrote:
> Steven D'Aprano <steve+comp.lang.python at pearwood.info>:
>
>> On Thu, 20 Feb 2014 12:22:29 +0200, Marko Rauhamaa wrote:
>>> I'm looking forward to the day when every application can add its own
>>> keywords as is customary in Lisp.
>>
>> And what a wonderful day that will be! Reading any piece of code you
>> didn't write yourself -- or wrote a long time ago -- will be an
>> adventure! Every script will have it's own exciting new set of
>> keywords doing who knows what, which makes every script nearly it's
>> own language! Oh joy, I cannot wait!
>>
>> That's sarcasm, by the way.
>
> I don't hear Lispers or C programmers complaining. Yes, you can shoot
> yourself in the foot with macro trickery, but macros can greatly enhance
> code readability and remove the need for code generators. That's why
> they are used extensively in Linux kernel code and GOOPS (Guile's object
> system), for example.

How does C let you create new keywords?

ChrisA



More information about the Python-list mailing list