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

Carl M. Johnson cmjohnson.mailinglist at gmail.com
Tue Apr 26 03:50:50 CEST 2011


On Mon, Apr 25, 2011 at 2:14 PM, Chris Rebert <pyideas at rebertia.com> wrote:
> On Mon, Apr 25, 2011 at 4:53 PM, Carl M. Johnson
>> 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.
>
> You're missing True, False, and None.

Looks like a bug in help("keywords") under Python 3.2.


More information about the Python-ideas mailing list