[Python-checkins] python/nondist/peps pep-0318.txt,1.9,1.10

montanaro at users.sourceforge.net montanaro at users.sourceforge.net
Thu Apr 1 08:44:39 EST 2004


Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16980

Modified Files:
	pep-0318.txt 
Log Message:
Add Guido's proposal and patch.


Index: pep-0318.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0318.txt,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** pep-0318.txt	31 Mar 2004 18:19:22 -0000	1.9
--- pep-0318.txt	1 Apr 2004 13:44:35 -0000	1.10
***************
*** 142,146 ****
  ===================
  
! A few other syntaxes have been proposed::
  
      def func(arg1, arg2, ...) as dec1, dec2, ...:
--- 142,146 ----
  ===================
  
! Several other syntaxes have been proposed::
  
      def func(arg1, arg2, ...) as dec1, dec2, ...:
***************
*** 192,195 ****
--- 192,209 ----
  it would require the introduction of a new keyword.
  
+ Guido proposed and implementated a patch to support interpretation of
+ a `list of decorators`_ as a prefix to function definitions ::
+ 
+     [dec1, dec2, ...]
+     def foo(arg1, arg2, ...):
+         pass
+ 
+ This appears to be his current favorite, but negative sentiment runs
+ high, mostly because that syntax, though useless except for side
+ effects of the list, is already legal and thus creates a special case.
+ 
+ .. _list of decorators:
+    http://python.org/sf/926860
+ 
  
  Current Implementation




More information about the Python-checkins mailing list