summaryrefslogtreecommitdiffstats
path: root/Doc/ref
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2004-11-02 18:57:33 (GMT)
committerFred Drake <fdrake@acm.org>2004-11-02 18:57:33 (GMT)
commit9a408515697a718794e06d6126a844cd73e609ec (patch)
treebddd8455e3c5a6bddd25a75ddaf50e41afdf2d44 /Doc/ref
parente808c2341b4d6d1fb2d889241a8e899c5cf09cbf (diff)
downloadcpython-9a408515697a718794e06d6126a844cd73e609ec.zip
cpython-9a408515697a718794e06d6126a844cd73e609ec.tar.gz
cpython-9a408515697a718794e06d6126a844cd73e609ec.tar.bz2
clarify trailing comma in function argument list
(SF bug #798652)
Diffstat (limited to 'Doc/ref')
-rw-r--r--Doc/ref/ref5.tex4
-rw-r--r--Doc/ref/ref7.tex8
2 files changed, 6 insertions, 6 deletions
diff --git a/Doc/ref/ref5.tex b/Doc/ref/ref5.tex
index c7e5fd7..036533c 100644
--- a/Doc/ref/ref5.tex
+++ b/Doc/ref/ref5.tex
@@ -493,8 +493,8 @@ series of arguments:
{\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
diff --git a/Doc/ref/ref7.tex b/Doc/ref/ref7.tex
index 88c548c..92ee655 100644
--- a/Doc/ref/ref7.tex
+++ b/Doc/ref/ref7.tex
@@ -322,10 +322,10 @@ section~\ref{types}):
\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}