[Python-checkins] cpython (2.7): #16503: clarify "apply" docs.

ezio.melotti python-checkins at python.org
Sun Nov 18 20:23:57 CET 2012


http://hg.python.org/cpython/rev/7efa0d66b1a0
changeset:   80513:7efa0d66b1a0
branch:      2.7
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Sun Nov 18 21:23:44 2012 +0200
summary:
  #16503: clarify "apply" docs.

files:
  Doc/library/functions.rst |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -1676,7 +1676,8 @@
    ``function(*args, **keywords)``.
 
    .. deprecated:: 2.3
-      Use the extended call syntax with ``*args`` and ``**keywords`` instead.
+      Use ``function(*args, **keywords)`` instead of
+      ``apply(function, args, keywords)`` (see :ref:`tut-unpacking-arguments`).
 
 
 .. function:: buffer(object[, offset[, size]])

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list