update from Kevin Smith

This commit is contained in:
David Goodger 2003-07-29 15:31:13 +00:00
parent 8c01e74084
commit 664d7455ed
1 changed files with 13 additions and 3 deletions

View File

@ -8,7 +8,7 @@ Type: Standards Track
Content-Type: text/plain
Created: 05-Jun-2003
Python-Version: 2.4
Post-History: 09-Jun-2003
Post-History: 09-Jun-2003, 10-Jun-2003
Abstract
@ -127,7 +127,7 @@ Implementation Issues
Since these all appear within the operation of the 'def'
itself, it makes sense that synchronized, lock, and
classmethod must exist at the time that the definition
is compiled. In addition, each of these arguments will be
is executed. In addition, each of these arguments will be
evaluated before being applied to the compiled function.
This means that arguments like synchronized(lock) must
return a descriptor that will be applied to foo. Therefore,
@ -149,7 +149,17 @@ Implementation Issues
foo = <returned-descriptor>(classmethod(foo))
In either case, the modified function is bound to the function
name at compile time.
name when the 'def' statement is executed.
Current Implementations
I am not personally familiar enough with Python's source to
implement the proposed syntax; however, Michael Hudson has
implemented the "square-bracketed" syntax (see patch at
http://starship.python.net/crew/mwh/hacks/meth-syntax-sugar.diff).
It should be fairly simple for the Python development team
to translate this patch to the proposed syntax.
Possible Extensions