[Python-ideas] Make all keywords legal as an identifier
Chris Rebert
pyideas at rebertia.com
Tue Apr 26 02:14:55 CEST 2011
On Mon, Apr 25, 2011 at 4:53 PM, Carl M. Johnson
<cmjohnson.mailinglist at gmail.com> wrote:
> 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.
You're missing True, False, and None.
Ellipsis remains an interesting exception.
Cheers,
Chris
More information about the Python-ideas
mailing list