Kaydet (Commit) 82402758 authored tarafından Georg Brandl's avatar Georg Brandl

Merged revisions 77382 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r77382 | georg.brandl | 2010-01-09 10:47:11 +0100 (Sa, 09 Jan 2010) | 1 line

  #7422: make it clear that getargspec() only works on Python functions.
........
üst af77a2f3
...@@ -387,7 +387,7 @@ Classes and functions ...@@ -387,7 +387,7 @@ Classes and functions
.. function:: getargspec(func) .. function:: getargspec(func)
Get the names and default values of a function's arguments. A Get the names and default values of a Python function's arguments. A
:term:`named tuple` ``ArgSpec(args, varargs, keywords, :term:`named tuple` ``ArgSpec(args, varargs, keywords,
defaults)`` is returned. *args* is a list of defaults)`` is returned. *args* is a list of
the argument names. *varargs* and *varkw* are the names of the ``*`` and the argument names. *varargs* and *varkw* are the names of the ``*`` and
...@@ -402,8 +402,8 @@ Classes and functions ...@@ -402,8 +402,8 @@ Classes and functions
.. function:: getfullargspec(func) .. function:: getfullargspec(func)
Get the names and default values of a function's arguments. A :term:`named Get the names and default values of a Python function's arguments. A
tuple` is returned: :term:`named tuple` is returned:
``FullArgSpec(args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, ``FullArgSpec(args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults,
annotations)`` annotations)``
......
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