https://github.com/python/cpython/commit/175ab31377d9e616efb95168099d8c2c9036504a
commit: 175ab31377d9e616efb95168099d8c2c9036504a
branch: main
author: Anton Ryzhov <[email protected]>
committer: encukou <[email protected]>
date: 2026-02-20T08:56:56+01:00
summary:

Update comments in `_strptime` module (GH-144979)


Co-authored-by: Stan Ulbrych <[email protected]>

files:
M Lib/_strptime.py

diff --git a/Lib/_strptime.py b/Lib/_strptime.py
index fe34808d88769a..0d81ff6765e1ed 100644
--- a/Lib/_strptime.py
+++ b/Lib/_strptime.py
@@ -7,7 +7,7 @@
 
 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):

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to