]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update comments in `_strptime` module (GH-144979)
authorAnton Ryzhov <anton@ryzhov.me>
Fri, 20 Feb 2026 07:56:56 +0000 (08:56 +0100)
committerGitHub <noreply@github.com>
Fri, 20 Feb 2026 07:56:56 +0000 (08:56 +0100)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Lib/_strptime.py

index fe34808d88769a44c93c56d62049388b8eeed824..0d81ff6765e1edded86f8c346cf927bb9359ac96 100644 (file)
@@ -7,7 +7,7 @@ CLASSES:
 
 FUNCTIONS:
     _getlang -- Figure out what language is being used for the locale
-    strptime -- Calculates the time struct represented by the passed-in string
+    _strptime -- Calculates the time struct represented by the passed-in string
 
 """
 import os
@@ -518,9 +518,10 @@ def _calc_julian_from_U_or_W(year, week_of_year, day_of_week, week_starts_Mon):
 
 
 def _strptime(data_string, format="%a %b %d %H:%M:%S %Y"):
-    """Return a 2-tuple consisting of a time struct and an int containing
-    the number of microseconds based on the input string and the
-    format string."""
+    """Return a 3-tuple consisting of a tuple with time components,
+    an int containing the number of microseconds, and an int
+    containing the microseconds part of the GMT offset, based on the
+    input string and the format string."""
 
     for index, arg in enumerate([data_string, format]):
         if not isinstance(arg, str):