diff options
author | Guido van Rossum <guido@python.org> | 1996-06-26 19:26:20 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-06-26 19:26:20 (GMT) |
commit | 00ed6a3279371854400902ce8ef437d3225ef285 (patch) | |
tree | ae897d951cd865bc35dfc14bbd8e048f6b6a32cb | |
parent | 036eae664788df268ab8b95b522f3a95878624b1 (diff) | |
download | cpython-00ed6a3279371854400902ce8ef437d3225ef285.zip cpython-00ed6a3279371854400902ce8ef437d3225ef285.tar.gz cpython-00ed6a3279371854400902ce8ef437d3225ef285.tar.bz2 |
added '**kw' to parameter list syntax
-rw-r--r-- | Doc/ref/ref7.tex | 4 | ||||
-rw-r--r-- | Doc/ref7.tex | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Doc/ref/ref7.tex b/Doc/ref/ref7.tex index 89fa6ed..9bce121 100644 --- a/Doc/ref/ref7.tex +++ b/Doc/ref/ref7.tex @@ -275,7 +275,9 @@ keyword arguments is not yet documented in this manual. See chapter \begin{verbatim} funcdef: "def" funcname "(" [parameter_list] ")" ":" suite -parameter_list: (defparameter ",")* ("*" identifier | defparameter [","]) +parameter_list: (defparameter ",")* ("*" identifier [, "**" identifier] + | "**" identifier + | defparameter [","]) defparameter: parameter ["=" condition] sublist: parameter ("," parameter)* [","] parameter: identifier | "(" sublist ")" diff --git a/Doc/ref7.tex b/Doc/ref7.tex index 89fa6ed..9bce121 100644 --- a/Doc/ref7.tex +++ b/Doc/ref7.tex @@ -275,7 +275,9 @@ keyword arguments is not yet documented in this manual. See chapter \begin{verbatim} funcdef: "def" funcname "(" [parameter_list] ")" ":" suite -parameter_list: (defparameter ",")* ("*" identifier | defparameter [","]) +parameter_list: (defparameter ",")* ("*" identifier [, "**" identifier] + | "**" identifier + | defparameter [","]) defparameter: parameter ["=" condition] sublist: parameter ("," parameter)* [","] parameter: identifier | "(" sublist ")" |