PEP 318 - Function Modifier Syntax

Erik Max Francis max at alcyone.com
Tue Jun 10 21:26:52 EDT 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
1
>>> from time import time as as
>>> as()
1055294800.0949579

-- 
   Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
 __ 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