[Python-checkins] python/dist/src/Doc/ref ref5.tex, 1.84,
1.85 ref7.tex, 1.40, 1.41
fdrake at users.sourceforge.net
fdrake at users.sourceforge.net
Tue Nov 2 19:57:36 CET 2004
Update of /cvsroot/python/python/dist/src/Doc/ref
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5690/ref
Modified Files:
ref5.tex ref7.tex
Log Message:
clarify trailing comma in function argument list
(SF bug #798652)
Index: ref5.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref5.tex,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -d -r1.84 -r1.85
--- ref5.tex 9 Oct 2004 15:52:04 -0000 1.84
+++ ref5.tex 2 Nov 2004 18:57:33 -0000 1.85
@@ -493,8 +493,8 @@
{\token{identifier} "=" \token{expression}}
\end{productionlist}
-A trailing comma may be present after an argument list but does not
-affect the semantics.
+A trailing comma may be present after the positional and keyword
+arguments but does not affect the semantics.
The primary must evaluate to a callable object (user-defined
functions, built-in functions, methods of built-in objects, class
Index: ref7.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref7.tex,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- ref7.tex 17 Aug 2004 17:29:13 -0000 1.40
+++ ref7.tex 2 Nov 2004 18:57:33 -0000 1.41
@@ -322,10 +322,10 @@
\production{decorator}
{"@" \token{dotted_name} ["(" [\token{argument_list} [","]] ")"] NEWLINE}
\production{parameter_list}
- {(\token{defparameter} ",")*}
- \productioncont{("*" \token{identifier} [, "**" \token{identifier}]}
- \productioncont{| "**" \token{identifier}
- | \token{defparameter} [","])}
+ {(\token{defparameter} ",")*}
+ \productioncont{(~~"*" \token{identifier} [, "**" \token{identifier}]}
+ \productioncont{ | "**" \token{identifier}}
+ \productioncont{ | \token{defparameter} [","] )}
\production{defparameter}
{\token{parameter} ["=" \token{expression}]}
\production{sublist}
More information about the Python-checkins
mailing list