[Python-checkins] CVS: python/nondist/peps pep-0232.txt,1.2,1.3

Barry Warsaw python-dev@python.org
Wed, 20 Dec 2000 08:43:01 -0800


Update of /cvsroot/python/python/nondist/peps
In directory usw-pr-cvs1:/tmp/cvs-serv14147

Modified Files:
	pep-0232.txt 
Log Message:
Another suggested syntax for inlining attributes, by Aaron Digulla.


Index: pep-0232.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0232.txt,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** pep-0232.txt	2000/12/14 17:20:46	1.2
--- pep-0232.txt	2000/12/20 16:42:59	1.3
***************
*** 100,105 ****
         syntactic support for conveniently setting.  It may be
         worthwhile to enhance the language for supporting easy function
!        attribute setting.  One suggestion that has been raised in
!        previous discussions is this syntax:
  
         def a {
--- 100,104 ----
         syntactic support for conveniently setting.  It may be
         worthwhile to enhance the language for supporting easy function
!        attribute setting.  Here are some suggested syntaxes:
  
         def a {
***************
*** 110,115 ****
             # ...
  
!        I.e., that a dictionary literal placed between the function
!        name and the argument parentheses be assigned to func_dict.
  
         It isn't currently clear if special syntax is necessary or
--- 109,118 ----
             # ...
  
!        def a(args):
!            """The usual docstring."""
!            {'publish' : 1,
!             'unittest': '''...''',
!             # etc.
!             }
  
         It isn't currently clear if special syntax is necessary or