mirror of
https://github.com/python/cpython.git
synced 2025-11-11 22:55:08 +00:00
Adjusted apply() docstring based on comments from Gerrit Holl
<gerrit.holl@pobox.com>.
This commit is contained in:
parent
fbff97a73b
commit
7b912120ca
1 changed files with 4 additions and 3 deletions
|
|
@ -130,10 +130,11 @@ builtin_apply(self, args)
|
||||||
}
|
}
|
||||||
|
|
||||||
static char apply_doc[] =
|
static char apply_doc[] =
|
||||||
"apply(function, args[, kwargs]) -> value\n\
|
"apply(object, args[, kwargs]) -> value\n\
|
||||||
\n\
|
\n\
|
||||||
Call a function with positional arguments taken from the tuple args,\n\
|
Call a callable object with positional arguments taken from the tuple args,\n\
|
||||||
and keyword arguments taken from the optional dictionary kwargs.";
|
and keyword arguments taken from the optional dictionary kwargs.\n\
|
||||||
|
Note that classes are callable, as are instances with a __call__() method.";
|
||||||
|
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue