Are Python's reserved words reserved in places they dont need tobe?

Diez B. Roggisch deets at nospam.web.de
Wed Sep 13 13:03:49 CEST 2006


>> In general, that is true for the 21st century. But under certain
>> circumstances, one might be forced to use a vi over a limited b/w
>> terminal to fix that goddamn bug on the live system.
> 
> AFAIR, even those terminals had a form of highlighting. And personnaly
> I would think PEP 0263 would be potentially more annoying than this
> idea in those circumstances.

How so? Because some less important string literals  might be fucked up?
Certainly can that cause trouble, but having the trouble for each and every
keyword is a huge difference.

>> Even though you don't care about the pesky details, it boils down to
>> introducing an escape mechanism that will surround whatever identifiers
>> there are. Which looks crap in anything except and python-aware editor.
>>
>> But I bet you don't work with e.g. subversion to display diffs and the
>> like...
> 
> I wouldn't be surprised that looking at diffs from files that use
> PEP 0263 could look like crap too. Yes some decisions can cause
> some tools to be less usefull. I would say that the right cause
> of action is then to adapt those tools. Not to let something like
> that stop your decision.

The same reasoning as above applies. 

And sure you would say that - the day you admit to have suggested a stupid
thing won't be in my hopefully long-standing life span. 

Diez



More information about the Python-list mailing list