[Python-ideas] Make all keywords legal as an identifier
Nick Coghlan
ncoghlan at gmail.com
Tue Apr 26 05:34:20 CEST 2011
On Tue, Apr 26, 2011 at 11:50 AM, Carl M. Johnson
<cmjohnson.mailinglist at gmail.com> wrote:
>> You're missing True, False, and None.
>
> Looks like a bug in help("keywords") under Python 3.2.
The bug is actually a little deeper than that - True/False/None were
historically either not keywords at all, or pseudo keywords that were
permitted as attributes, but not as local variables. They haven't yet
been promoted properly to full keyword status in the language grammar
(even though the compiler already ensures that they can't be assigned
to or used as anything other than themselves).
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-ideas
mailing list