[Python-ideas] relaxing keyword usage restrictions

Ethan Furman ethan at stoneleaf.us
Tue Sep 6 18:51:36 CEST 2011


H Krishnan wrote:
> Hi,
> 
> Apologies if this has been asked already: why can't the usage of at
> least some keywords as identifiers be allowed with the context of the
> usage being used to identify if a keyword or a variable is being
> referred to.
> 
> For example,
> 
> if = 3  # if is identifier
> if if = 3: # first if is keyword, second if is identifer


Awkward, confusing, horrible.

-1



More information about the Python-ideas mailing list