Commit 4800ff22 authored by Brett Cannon's avatar Brett Cannon

Clarify docs for inspect.getargspec() that the fourth value is None when there

are no default arguments for the function.
parent b21d0f21
...@@ -255,9 +255,9 @@ Note: ...@@ -255,9 +255,9 @@ Note:
\var{args} is a list of the argument names (it may contain nested lists). \var{args} is a list of the argument names (it may contain nested lists).
\var{varargs} and \var{varkw} are the names of the \code{*} and \var{varargs} and \var{varkw} are the names of the \code{*} and
\code{**} arguments or \code{None}. \code{**} arguments or \code{None}.
\var{defaults} is a tuple of default argument values; if this tuple \var{defaults} is a tuple of default argument values or None if there are no
has \var{n} elements, they correspond to the last \var{n} elements default arguments; if this tuple has \var{n} elements, they correspond to
listed in \var{args}. the last \var{n} elements listed in \var{args}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{getargvalues}{frame} \begin{funcdesc}{getargvalues}{frame}
......
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