Python's "only one way to do it" philosophy isn't good?

Graham Breed x31equsenet at gmail.com
Thu Jun 28 01:20:17 EDT 2007


Dennis Lee Bieber wote:

> 	But if these "macros" are supposed to allow one to sort of extend
> Python syntax, are you really going to code things like
>
> 	macrolib1.keyword
>
> everywhere?

I don't see why that *shouldn't* work.  Or "from macrolib1 import
keyword as foo".  And to be truly Pythonic the keywords would have to
be scoped like normal Python variables.  One problem is that such a
system wouldn't be able to redefine existing keywords.

Lets wait for a concrete proposal before delving into this rats'
cauldron any further.


                           Graham




More information about the Python-list mailing list