◐ Shell
reader mode source ↗
Skip to content

GH-70647: Deprecate strptime day of month parsing without a year present to avoid leap-year bugs#117107

Merged
encukou merged 9 commits into
python:mainfrom
gpshead:leapyear/be/gone
Apr 3, 2024
Merged

GH-70647: Deprecate strptime day of month parsing without a year present to avoid leap-year bugs#117107
encukou merged 9 commits into
python:mainfrom
gpshead:leapyear/be/gone

Conversation

@gpshead

@gpshead gpshead commented Mar 20, 2024

Copy link
Copy Markdown
Member

If we don't do this now, people will still be using Python releases that don't guide code away from the bug by the time the next leap year rolls around. :)

Decision on what our actual breaking change will be has been left for later, this just starts the process to allow us to do it with a suggestion of how to always avoid such problems in code.

TODO list:

@gpshead gpshead requested a review from Yhg1s March 28, 2024 22:03
@gpshead

gpshead commented Mar 29, 2024

Copy link
Copy Markdown
Member Author

Documentation added, but I need to reconcile this with my proposed non deprecation related wording drafted in #116179.

gpshead added 2 commits April 1, 2024 16:31
To passively encourage people to include such comments in their own code
when adopting this mitigation...
@gpshead gpshead requested a review from encukou April 1, 2024 23:38
@encukou encukou merged commit 33ee5cb into python:main Apr 3, 2024
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants