]> granicus.if.org Git - python/commitdiff
The doc string for strptime had the arguments reversed -- the string
authorGuido van Rossum <guido@python.org>
Thu, 7 Jan 1999 18:29:26 +0000 (18:29 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 7 Jan 1999 18:29:26 +0000 (18:29 +0000)
comes first, the format second!  Scott Cotton discovered this.

Modules/timemodule.c

index 3cf30d6c46aa12776cca9a9226e122426d37bfc9..4593b8fd98c7637b503d2aa48566941f27244a60 100644 (file)
@@ -435,7 +435,7 @@ time_strptime(self, args)
 }
 
 static char strptime_doc[] =
-"strptime(format, string) -> tuple\n\
+"strptime(string, format) -> tuple\n\
 Parse a string to a time tuple according to a format specification.\n\
 See the library reference manual for formatting codes (same as strftime()).";
 #endif /* HAVE_STRPTIME */