PEP 318 - Function Modifier Syntax

Ian Bicking ianb at colorstudy.com
Tue Jun 10 19:15:24 EDT 2003


On Tue, 2003-06-10 at 18:06, Erik Max Francis wrote:
> I think that's a good summary.  `is' sounds like a declaration, whereas
> `as' sounds more like declaring properties, which is what we're doing. 
> Ideal would be a new keyword that really says what we mean, like `has',
> but the inertia against adding new keywords makes that scenario far less
> likely.

"Has" doesn't seem good, because it implies that the function has a
property (of being a classmethod or something), when in fact the
function is being replaced/wrapped.  

  Ian







More information about the Python-list mailing list