]> granicus.if.org Git - python/commitdiff
Adjusted apply() docstring based on comments from Gerrit Holl
authorFred Drake <fdrake@acm.org>
Thu, 23 Dec 1999 14:16:55 +0000 (14:16 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 23 Dec 1999 14:16:55 +0000 (14:16 +0000)
<gerrit.holl@pobox.com>.

Python/bltinmodule.c

index c220d84100d3b829e1ca814ae4e7782dfdb29364..1d23281f9f90ebbfb9320f7040e4bf7d19e21bc5 100644 (file)
@@ -130,10 +130,11 @@ builtin_apply(self, args)
 }
 
 static char apply_doc[] =
-"apply(function, args[, kwargs]) -> value\n\
+"apply(object, args[, kwargs]) -> value\n\
 \n\
-Call a function with positional arguments taken from the tuple args,\n\
-and keyword arguments taken from the optional dictionary kwargs.";
+Call a callable object with positional arguments taken from the tuple args,\n\
+and keyword arguments taken from the optional dictionary kwargs.\n\
+Note that classes are callable, as are instances with a __call__() method.";
 
 
 static PyObject *