Skip to content

Commit fba84f0

Browse files
date.strptime note
1 parent dd067c1 commit fba84f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/datetime.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ Other constructors, all class methods:
599599
:exc:`DeprecationWarning` is emitted. This is to avoid a quadrennial
600600
leap year bug in code seeking to parse only a month and day as the
601601
default year used in absence of one in the format is not a leap year.
602-
Such *format* values may raise an error as of Python 3.15. The
602+
Such *format* values may raise an error as of Python 3.18. The
603603
workaround is to always include a year in your *format*. If parsing
604604
*date_string* values that do not have a year, explicitly add a year that
605605
is a leap year before parsing:

0 commit comments

Comments
 (0)