From: Guido van Rossum Date: Thu, 7 Jan 1999 18:29:26 +0000 (+0000) Subject: The doc string for strptime had the arguments reversed -- the string X-Git-Tag: v1.5.2b2~423 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=446ccfe1ac97f5dc05a0ba89fc0a912981235099;p=thirdparty%2FPython%2Fcpython.git The doc string for strptime had the arguments reversed -- the string comes first, the format second! Scott Cotton discovered this. --- diff --git a/Modules/timemodule.c b/Modules/timemodule.c index 3cf30d6c46aa..4593b8fd98c7 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -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 */