Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 91cc5cd

Browse files
committed
Clarify docs for inspect.getargspec() that the fourth value is None when there
are no default arguments for the function.
1 parent bdc3627 commit 91cc5cd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/lib/libinspect.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,9 @@ \subsection{Classes and functions
255255
\var{args} is a list of the argument names (it may contain nested lists).
256256
\var{varargs} and \var{varkw} are the names of the \code{*} and
257257
\code{**} arguments or \code{None}.
258-
\var{defaults} is a tuple of default argument values; if this tuple
259-
has \var{n} elements, they correspond to the last \var{n} elements
260-
listed in \var{args}.
258+
\var{defaults} is a tuple of default argument values or None if there are no
259+
default arguments; if this tuple has \var{n} elements, they correspond to
260+
the last \var{n} elements listed in \var{args}.
261261
\end{funcdesc}
262262

263263
\begin{funcdesc}{getargvalues}{frame}

0 commit comments

Comments
 (0)