diff -r ab162f925761 Doc/reference/expressions.rst --- a/Doc/reference/expressions.rst Mon Jul 11 01:39:35 2011 +0200 +++ b/Doc/reference/expressions.rst Mon Jul 11 14:57:53 2011 +0300 @@ -654,12 +654,18 @@ case for functions implemented in C that use :c:func:`PyArg_ParseTuple` to parse their arguments. +.. index:: + statement: * + If there are more positional arguments than there are formal parameter slots, a :exc:`TypeError` exception is raised, unless a formal parameter using the syntax ``*identifier`` is present; in this case, that formal parameter receives a tuple containing the excess positional arguments (or an empty tuple if there were no excess positional arguments). +.. index:: + statement: ** + If any keyword argument does not correspond to a formal parameter name, a :exc:`TypeError` exception is raised, unless a formal parameter using the syntax ``**identifier`` is present; in this case, that formal parameter receives a