Commit c4ed9713 authored by Georg Brandl's avatar Georg Brandl

Clarify wording for apply().

parent 87fc9ad9
...@@ -1292,12 +1292,11 @@ bypass these functions without concerns about missing something important. ...@@ -1292,12 +1292,11 @@ bypass these functions without concerns about missing something important.
present, it must be a dictionary whose keys are strings. It specifies keyword present, it must be a dictionary whose keys are strings. It specifies keyword
arguments to be added to the end of the argument list. Calling :func:`apply` is arguments to be added to the end of the argument list. Calling :func:`apply` is
different from just calling ``function(args)``, since in that case there is different from just calling ``function(args)``, since in that case there is
always exactly one argument. The use of :func:`apply` is equivalent to always exactly one argument. The use of :func:`apply` is exactly equivalent to
``function(*args, **keywords)``. Use of :func:`apply` is not necessary since the ``function(*args, **keywords)``.
"extended call syntax," as used in the last example, is completely equivalent.
.. deprecated:: 2.3 .. deprecated:: 2.3
Use the extended call syntax instead, as described above. Use the extended call syntax with ``*args`` and ``**keywords`` instead.
.. function:: buffer(object[, offset[, size]]) .. function:: buffer(object[, offset[, size]])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment