[Python-ideas] Make all keywords legal as an identifier

Carl M. Johnson cmjohnson.mailinglist at gmail.com
Tue Apr 26 01:53:36 CEST 2011


On Mon, Apr 25, 2011 at 11:26 AM, Ethan Furman <ethan at stoneleaf.us> wrote:


> Many?  Aren't we still at less than 50 words total?  Pretty infinitesimal
> when compared with the 100,000+ words in the English language.

Here are all of them for Python 3:


and                 elif                import              raise
as                  else                in                  return
assert              except              is                  try
break               finally             lambda              while
class               for                 nonlocal            with
continue            from                not                 yield
def                 global              or
del                 if                  pass

30 total.

I say, append a _ and you're fine.



More information about the Python-ideas mailing list