PEP 318 - Function Modifier Syntax

Erik Max Francis max at
Wed Jun 11 03:26:52 CEST 2003

Courageous wrote:

> Failure to establish a benefit is not an existence proof of a
> detriment. Be that as it may, I agree with you that an alternate
> word would be helpful (although it has the disadvantage of breaking
> backwards compatability, whereas reusing an old keyword does not).
> to muddle things up.

Well, it doesn't have to.  The required keyword here would be
subordinate -- i.e., it's only recognized as a keyword in these
particular circumstances -- and so could be used as a legitimate
variable elsewhere.  This is true of the `as' keyword, for instance;
nothing prevents you from having a variable named `as':

>>> as = 1
>>> as
>>> from time import time as as
>>> as()

   Erik Max Francis && max at &&
 __ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/  \ But who shall dwell in these worlds if they be inhabited?
\__/  Johannes Kepler

More information about the Python-list mailing list