[Python-ideas] Make all keywords legal as an identifier
Rob Cliffe
rob.cliffe at btinternet.com
Tue Apr 26 02:52:53 CEST 2011
On 26/04/2011 01:14, Chris Rebert wrote:
> 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
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
If you don't like adding an underscore, why not capitalise the first
Letter of your Identifiers, e.g. 'With'? This would be fine for
importing from Pascal (where Identifiers are Case-insensitive) and would
guarantee avoiding clashing with Keywords, present *and* future (even if
it gave a slightly German Flavour to the Code).
Rob Cliffe
More information about the Python-ideas
mailing list