From: Brett Cannon Date: Sat, 10 Jul 2004 21:04:44 +0000 (+0000) Subject: Clarify docs for getargspec() that when there are not default values the fourth X-Git-Tag: v2.3.5c1~185 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=df2762322ffd9d76cc67788c3a12bb770128ecad;p=thirdparty%2FPython%2Fcpython.git Clarify docs for getargspec() that when there are not default values the fourth value in the returned tuple is None. Closes bug #637217 by clarifying the behavior. --- diff --git a/Doc/lib/libinspect.tex b/Doc/lib/libinspect.tex index 68ae67b36e32..4cdf921fc45a 100644 --- a/Doc/lib/libinspect.tex +++ b/Doc/lib/libinspect.tex @@ -255,9 +255,9 @@ Note: \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 \code{**} arguments or \code{None}. - \var{defaults} is a tuple of default argument values; if this tuple - has \var{n} elements, they correspond to the last \var{n} elements - listed in \var{args}. + \var{defaults} is a tuple of default argument values or None if there are not + any; if the tuple has \var{n} elements, they correspond to the last \var{n} + elements listed in \var{args}. \end{funcdesc} \begin{funcdesc}{getargvalues}{frame}