]> granicus.if.org Git - python/commitdiff
Clarify wording on default values for strptime(); defaults are used when better
authorBrett Cannon <bcannon@gmail.com>
Wed, 31 May 2006 02:19:54 +0000 (02:19 +0000)
committerBrett Cannon <bcannon@gmail.com>
Wed, 31 May 2006 02:19:54 +0000 (02:19 +0000)
values cannot be inferred.

Closes bug #1496315.

Doc/lib/libtime.tex

index 8045a63ef210bec779d2f80180753a16142dc99a..b39b65063c61941f1b1d84ea1cf12cee8179e472 100644 (file)
@@ -314,7 +314,8 @@ returned by \function{ctime()}.  If \var{string} cannot be parsed
 according to \var{format}, \exception{ValueError} is raised.  If the
 string to be parsed has excess data after parsing,
 \exception{ValueError} is raised.  The default values used to fill in
-any missing data are \code{(1900, 1, 1, 0, 0, 0, 0, 1, -1)} .
+any missing data when more accurate values cannot be inferred are
+\code{(1900, 1, 1, 0, 0, 0, 0, 1, -1)} .
 
 Support for the \code{\%Z} directive is based on the values contained in
 \code{tzname} and whether \code{daylight} is true.  Because of this,