]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#2677: add note that not all functions may accept keyword args.
authorGeorg Brandl <georg@python.org>
Sun, 27 Apr 2008 09:39:59 +0000 (09:39 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 27 Apr 2008 09:39:59 +0000 (09:39 +0000)
Doc/reference/expressions.rst

index 299ff5673ea7d8bca7e50bd5f519ebbcdaa069fb..c148533d9ad57fcbc6fe19c5d79f85b785aab27c 100644 (file)
@@ -663,6 +663,14 @@ slots for which no default value is specified, a :exc:`TypeError` exception is
 raised.  Otherwise, the list of filled slots is used as the argument list for
 the call.
 
+.. note::
+   
+   An implementation may provide builtin functions whose positional parameters do
+   not have names, even if they are 'named' for the purpose of documentation, and
+   which therefore cannot be supplied by keyword.  In CPython, this is the case for
+   functions implemented in C that use :cfunc:`PyArg_ParseTuple` to parse their
+   arguments.
+
 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