René's URL Explorer Experiment


Title: GH-70647: Deprecate strptime day of month parsing without a year present to avoid leap-year bugs by gpshead · Pull Request #117107 · python/cpython · GitHub

Open Graph Title: GH-70647: Deprecate strptime day of month parsing without a year present to avoid leap-year bugs by gpshead · Pull Request #117107 · python/cpython

X Title: GH-70647: Deprecate strptime day of month parsing without a year present to avoid leap-year bugs by gpshead · Pull Request #117107 · python/cpython

Description: 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 chan...

Open Graph Description: 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 break...

X Description: 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 actu...

Opengraph URL: https://github.com/python/cpython/pull/117107

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:f7f2829a-93fe-034b-3d57-86c43ea520da
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9470:5D3AF:77B9F:A9F8F:696A3823
html-safe-nonce8ee5b3142419d92751f36f87d43243a043f14e487ef1d2879f6c183c1b3880df
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDcwOjVEM0FGOjc3QjlGOkE5RjhGOjY5NkEzODIzIiwidmlzaXRvcl9pZCI6IjI3MTM3MTE2MDgxMjk1MzM5ODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacebf913630ba5907906878d64d1a26c793808a26e41b71364dc996957546fdcd6
hovercard-subject-tagpull_request:1783222254
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/117107/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/643bfc2fe87ea73744c9a49c71adaca11adba59ec03c39f06770d768bafc12d3/python/cpython/pull/117107
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/643bfc2fe87ea73744c9a49c71adaca11adba59ec03c39f06770d768bafc12d3/python/cpython/pull/117107
og:image:altIf 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 break...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegpshead
hostnamegithub.com
expected-hostnamegithub.com
None321736bfdb3f591415ae895a0459bec204b26a76caf47ba5c980634cfacc4538
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7a9163cefd1ea4bd06f8eb7c082f43e4e53f626f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/117107#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F117107
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F117107
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/117107
Reloadhttps://github.com/python/cpython/pull/117107
Reloadhttps://github.com/python/cpython/pull/117107
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/117107
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/117107
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/117107#issue-comment-box
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
gpshead:leapyear/be/gonehttps://github.com/gpshead/cpython/tree/leapyear/be/gone
GH-70647: Deprecate strptime day of month parsing without a year present to avoid leap-year bugs https://github.com/python/cpython/pull/117107#top
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
gpshead:leapyear/be/gonehttps://github.com/gpshead/cpython/tree/leapyear/be/gone
Conversation 9 https://github.com/python/cpython/pull/117107
Commits 9 https://github.com/python/cpython/pull/117107/commits
Checks 0 https://github.com/python/cpython/pull/117107/checks
Files changed https://github.com/python/cpython/pull/117107/files
Please reload this pagehttps://github.com/python/cpython/pull/117107
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Mar 20, 2024https://github.com/python/cpython/pull/117107#issue-2198768711
Please reload this pagehttps://github.com/python/cpython/pull/117107
gh-70647: Better promote how to safely parse yearless dates in datetime. #116179https://github.com/python/cpython/pull/116179
datetime.strptime without a year fails on Feb 29 #70647https://github.com/python/cpython/issues/70647
Please reload this pagehttps://github.com/python/cpython/pull/117107
gpsheadhttps://github.com/gpshead
March 20, 2024 16:10https://github.com/python/cpython/pull/117107#commits-pushed-4b929e4
https://github.com/gpshead
Deprecate strptime leap-year ambiguous MM-DD parsing.https://github.com/python/cpython/pull/117107/commits/4b929e4c3a7ab8ff13c08caac06ed10a341816a4
4b929e4https://github.com/python/cpython/pull/117107/commits/4b929e4c3a7ab8ff13c08caac06ed10a341816a4
https://github.com/gpshead
Fix the stacklevel and remove example from the warning message.https://github.com/python/cpython/pull/117107/commits/b0eacf9db3bf7e6cb1a1d7e4db1068f3402c967e
b0eacf9https://github.com/python/cpython/pull/117107/commits/b0eacf9db3bf7e6cb1a1d7e4db1068f3402c967e
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Mar 20, 2024https://github.com/python/cpython/pull/117107#event-12192654291
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
abalkinhttps://github.com/abalkin
pgansslehttps://github.com/pganssle
code ownershttps://github.com/python/cpython/blob/f4cc77d494ee0e10ed84ce369f0910c70a2f6d44/.github/CODEOWNERS#L125
March 20, 2024 23:20https://github.com/python/cpython/pull/117107#event-12192654356
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Mar 20, 2024https://github.com/python/cpython/pull/117107#event-12192654626
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Mar 20, 2024 https://github.com/python/cpython/pull/117107#ref-issue-1198948882
datetime.strptime without a year fails on Feb 29 #70647 https://github.com/python/cpython/issues/70647
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Mar 20, 2024 https://github.com/python/cpython/pull/117107#pullrequestreview-1950430378
View reviewed changes https://github.com/python/cpython/pull/117107/files/b0eacf9db3bf7e6cb1a1d7e4db1068f3402c967e
Lib/_strptime.pyhttps://github.com/python/cpython/pull/117107/files/b0eacf9db3bf7e6cb1a1d7e4db1068f3402c967e#diff-c214ba7b6692519554f750422c7c285579aa9e5399b71957a23d8f368be778b7
gpsheadhttps://github.com/gpshead
Mar 20, 2024https://github.com/python/cpython/pull/117107#discussion_r1533038080
Please reload this pagehttps://github.com/python/cpython/pull/117107
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/117107
encukouhttps://github.com/encukou
Apr 2, 2024https://github.com/python/cpython/pull/117107#discussion_r1547657196
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/117107
pgansslehttps://github.com/pganssle
Apr 2, 2024https://github.com/python/cpython/pull/117107#discussion_r1548101354
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/117107
gpsheadhttps://github.com/gpshead
March 20, 2024 16:28https://github.com/python/cpython/pull/117107#commits-pushed-5851b0b
https://github.com/gpshead
Simplify _assertNotWarns error message, removing a typo.https://github.com/python/cpython/pull/117107/commits/5851b0be1b2d27d7427b7107959331fd4caf7564
5851b0bhttps://github.com/python/cpython/pull/117107/commits/5851b0be1b2d27d7427b7107959331fd4caf7564
https://github.com/gpshead
add a unittest for _assertNotWarns.https://github.com/python/cpython/pull/117107/commits/a068dac1763e4aa832f0dbe2944c2185bd3822ff
a068dachttps://github.com/python/cpython/pull/117107/commits/a068dac1763e4aa832f0dbe2944c2185bd3822ff
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Yhg1shttps://github.com/Yhg1s
March 28, 2024 22:03https://github.com/python/cpython/pull/117107#event-12288215453
https://github.com/gpshead
Document the behavior deprecation.https://github.com/python/cpython/pull/117107/commits/333ba5789d638650cf4ec41c47c29ce22d43aaa5
333ba57https://github.com/python/cpython/pull/117107/commits/333ba5789d638650cf4ec41c47c29ce22d43aaa5
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Mar 29, 2024https://github.com/python/cpython/pull/117107#issuecomment-2026759241
#116179https://github.com/python/cpython/pull/116179
Please reload this pagehttps://github.com/python/cpython/pull/117107
gpsheadhttps://github.com/gpshead
April 1, 2024 16:31https://github.com/python/cpython/pull/117107#commits-pushed-b12e7e5
https://github.com/gpshead
minor doc cleanup.https://github.com/python/cpython/pull/117107/commits/b12e7e5b387a8507c7d6ea807c079cfe8a141d5d
b12e7e5https://github.com/python/cpython/pull/117107/commits/b12e7e5b387a8507c7d6ea807c079cfe8a141d5d
https://github.com/gpshead
adjust example code comments.https://github.com/python/cpython/pull/117107/commits/d4c994eb1a378198b540cb7688cf6d46cc0c2b4f
d4c994ehttps://github.com/python/cpython/pull/117107/commits/d4c994eb1a378198b540cb7688cf6d46cc0c2b4f
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
encukouhttps://github.com/encukou
April 1, 2024 23:38https://github.com/python/cpython/pull/117107#event-12317193484
https://github.com/encukou
Fix doctesthttps://github.com/python/cpython/pull/117107/commits/92e30b81d8c12a4418792ef237dd01dccb803b96
92e30b8https://github.com/python/cpython/pull/117107/commits/92e30b81d8c12a4418792ef237dd01dccb803b96
https://github.com/encukou
encukouhttps://github.com/encukou
Apr 2, 2024 https://github.com/python/cpython/pull/117107#pullrequestreview-1973439958
View reviewed changes https://github.com/python/cpython/pull/117107/files/d4c994eb1a378198b540cb7688cf6d46cc0c2b4f
Doc/library/datetime.rsthttps://github.com/python/cpython/pull/117107/files/d4c994eb1a378198b540cb7688cf6d46cc0c2b4f#diff-591e6aa401ebcd90f71f28b517b3d4437ba293920787df9ed06e037af0b07175
Please reload this pagehttps://github.com/python/cpython/pull/117107
https://github.com/encukou
encukouhttps://github.com/encukou
Apr 2, 2024 https://github.com/python/cpython/pull/117107#pullrequestreview-1973449608
View reviewed changes https://github.com/python/cpython/pull/117107/files/92e30b81d8c12a4418792ef237dd01dccb803b96
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Apr 2, 2024https://github.com/python/cpython/pull/117107#event-12323973284
https://github.com/encukou
encukouhttps://github.com/encukou
Apr 2, 2024 https://github.com/python/cpython/pull/117107#pullrequestreview-1973497973
View reviewed changes https://github.com/python/cpython/pull/117107/files/92e30b81d8c12a4418792ef237dd01dccb803b96
Lib/_strptime.pyhttps://github.com/python/cpython/pull/117107/files/92e30b81d8c12a4418792ef237dd01dccb803b96#diff-c214ba7b6692519554f750422c7c285579aa9e5399b71957a23d8f368be778b7
encukouhttps://github.com/encukou
Apr 2, 2024https://github.com/python/cpython/pull/117107#discussion_r1547691606
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/117107
encukouhttps://github.com/encukou
Apr 2, 2024https://github.com/python/cpython/pull/117107#discussion_r1547706140
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
nice job with the time machinehttps://github.com/python/cpython/pull/100840
Please reload this pagehttps://github.com/python/cpython/pull/117107
https://github.com/pganssle
pgansslehttps://github.com/pganssle
Apr 2, 2024 https://github.com/python/cpython/pull/117107#pullrequestreview-1974148339
View reviewed changes https://github.com/python/cpython/pull/117107/files/92e30b81d8c12a4418792ef237dd01dccb803b96
Doc/library/datetime.rsthttps://github.com/python/cpython/pull/117107/files/92e30b81d8c12a4418792ef237dd01dccb803b96#diff-591e6aa401ebcd90f71f28b517b3d4437ba293920787df9ed06e037af0b07175
Please reload this pagehttps://github.com/python/cpython/pull/117107
https://github.com/pganssle
pgansslehttps://github.com/pganssle
Apr 2, 2024 https://github.com/python/cpython/pull/117107#pullrequestreview-1974185396
View reviewed changes https://github.com/python/cpython/pull/117107/files/92e30b81d8c12a4418792ef237dd01dccb803b96
https://github.com/encukou
Use skip_file_prefixes for the warninghttps://github.com/python/cpython/pull/117107/commits/f1bd314ce7dc430775365838376b44da27e100c3
f1bd314https://github.com/python/cpython/pull/117107/commits/f1bd314ce7dc430775365838376b44da27e100c3
https://github.com/encukou
encukouhttps://github.com/encukou
33ee5cbhttps://github.com/python/cpython/commit/33ee5cb3e92ea8798e7f1a2f3a13b92b39cee6d6
Apr 3, 2024https://github.com/python/cpython/pull/117107#event-12341072235
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Apr 3, 2024https://github.com/python/cpython/pull/117107#event-12341073107
diegorussohttps://github.com/diegorusso
Apr 17, 2024 https://github.com/python/cpython/pull/117107#ref-commit-f3bbfdf
https://github.com/gpshead
https://github.com/diegorusso
pythonGH-70647https://github.com/python/cpython/issues/70647
: Deprecate strptime day of month parsing without a yea…https://github.com/diegorusso/cpython/commit/f3bbfdf40da835dd911bd7780adcd71e5716caf8
f3bbfdfhttps://github.com/diegorusso/cpython/commit/f3bbfdf40da835dd911bd7780adcd71e5716caf8
pythonGH-117107https://github.com/python/cpython/pull/117107
https://github.com/brianschubert
brianschuberthttps://github.com/brianschubert
Aug 13, 2025 https://github.com/python/cpython/pull/117107#ref-pullrequest-3320224677
gh-137742: Use footnote markup for table notes in datetime docs #137743 https://github.com/python/cpython/pull/137743
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F117107
https://github.com/encukou
encukou https://github.com/encukou
https://github.com/python/cpython/pull/117107/files/92e30b81d8c12a4418792ef237dd01dccb803b96
https://github.com/pganssle
pganssle https://github.com/pganssle
https://github.com/python/cpython/pull/117107/files/92e30b81d8c12a4418792ef237dd01dccb803b96
https://github.com/abalkin
abalkin https://github.com/abalkin
https://github.com/Yhg1s
Yhg1s https://github.com/Yhg1s
https://github.com/gpshead
gpshead https://github.com/gpshead
Please reload this pagehttps://github.com/python/cpython/pull/117107
https://github.com/gpshead
https://github.com/encukou
https://github.com/pganssle
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.