René's URL Explorer Experiment


Title: gh-124529: Fix `_strptime` to make `%c`/`%x` accept a year with fewer digits by zuo · Pull Request #124778 · python/cpython · GitHub

Open Graph Title: gh-124529: Fix `_strptime` to make `%c`/`%x` accept a year with fewer digits by zuo · Pull Request #124778 · python/cpython

X Title: gh-124529: Fix `_strptime` to make `%c`/`%x` accept a year with fewer digits by zuo · Pull Request #124778 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: _strptime.TimeRE has been modified, regarding the %c and %x format codes, to make datetime.datetime.strptime(), datetime.date.strptime() and time.strptime() accept inputs that contain year numbers ...

X Description: _strptime.TimeRE has been modified, regarding the %c and %x format codes, to make datetime.datetime.strptime(), datetime.date.strptime() and time.strptime() accept inputs that contain year numbers ...

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:702aae52-2c5c-4a9b-ec79-a6bab06b8f8f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAA5E:AA9CB:9152A:C00E1:6B022473
html-safe-nonce177cc818e24bc6a44a247388e08186e4ec54e61eea6f1cc47e8ba9714994c051
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTVFOkFBOUNCOjkxNTJBOkMwMEUxOjZCMDIyNDczIiwidmlzaXRvcl9pZCI6IjEzMDM3MDIwOTI4NzkzNzM0MjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4c5543af954e97edbad9c9876f1635bb3e304525d0db30779d473d0c13498966
hovercard-subject-tagpull_request:2097991689
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///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/124778/commits
twitter:imagehttps://opengraph.githubassets.com/949918c7afa344d178d76980463e94a155932eb7e735cad1e59e05cc29c482fd/python/cpython/pull/124778
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/949918c7afa344d178d76980463e94a155932eb7e735cad1e59e05cc29c482fd/python/cpython/pull/124778
og:image:alt_strptime.TimeRE has been modified, regarding the %c and %x format codes, to make datetime.datetime.strptime(), datetime.date.strptime() and time.strptime() accept inputs that contain year numbers ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamezuo
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/124778/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F124778%2Fcommits
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F124778%2Fcommits
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/124778/commits
Reloadhttps://github.com/python/cpython/pull/124778/commits
Reloadhttps://github.com/python/cpython/pull/124778/commits
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
zuohttps://github.com/zuo
python:mainhttps://github.com/python/cpython/tree/main
zuo:strptime-c-and-y-fixhttps://github.com/zuo/cpython/tree/strptime-c-and-y-fix
Conversationhttps://github.com/python/cpython/pull/124778
Commits26 (26)https://github.com/python/cpython/pull/124778/commits
Checkshttps://github.com/python/cpython/pull/124778/checks
Files changedhttps://github.com/python/cpython/pull/124778/files
gh-124529: Fix _strptime to make %c/%x accept a year with fewer digitshttps://github.com/python/cpython/pull/124778/commits#top
zuohttps://github.com/zuo
python:mainhttps://github.com/python/cpython/tree/main
zuo:strptime-c-and-y-fixhttps://github.com/zuo/cpython/tree/strptime-c-and-y-fix
gh-124529: Fix _strptime to make %c/%x accept year with fewer digitshttps://github.com/python/cpython/pull/124778/commits/827db4591600305dc1a686ea6a71606366573cc3
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
827db45https://github.com/python/cpython/pull/124778/commits/827db4591600305dc1a686ea6a71606366573cc3
https://github.com/python/cpython/tree/827db4591600305dc1a686ea6a71606366573cc3
Add the blurbhttps://github.com/python/cpython/pull/124778/commits/1d916a0392cc7957c74bcb851bec27a771383dd0
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
1d916a0https://github.com/python/cpython/pull/124778/commits/1d916a0392cc7957c74bcb851bec27a771383dd0
https://github.com/python/cpython/tree/1d916a0392cc7957c74bcb851bec27a771383dd0
Fix/improve (and shorten) the blurbhttps://github.com/python/cpython/pull/124778/commits/a4ba3c9b866ea5b1f29aac08f5bb692a0cf51292
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
a4ba3c9https://github.com/python/cpython/pull/124778/commits/a4ba3c9b866ea5b1f29aac08f5bb692a0cf51292
https://github.com/python/cpython/tree/a4ba3c9b866ea5b1f29aac08f5bb692a0cf51292
Fix/improve/refactor tests and restrict their scopehttps://github.com/python/cpython/pull/124778/commits/cef07220d1118268d0aabad171e83d50d32f96f8
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
cef0722https://github.com/python/cpython/pull/124778/commits/cef07220d1118268d0aabad171e83d50d32f96f8
https://github.com/python/cpython/tree/cef07220d1118268d0aabad171e83d50d32f96f8
Test fail message fixeshttps://github.com/python/cpython/pull/124778/commits/6556bdff6f0408d5f407d3566641f890c4c86802
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
6556bdfhttps://github.com/python/cpython/pull/124778/commits/6556bdff6f0408d5f407d3566641f890c4c86802
https://github.com/python/cpython/tree/6556bdff6f0408d5f407d3566641f890c4c86802
Continue enhancing/improving testshttps://github.com/python/cpython/pull/124778/commits/56c84dc69f7886b8926faf57aea59c9fbab56216
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
56c84dchttps://github.com/python/cpython/pull/124778/commits/56c84dc69f7886b8926faf57aea59c9fbab56216
https://github.com/python/cpython/tree/56c84dc69f7886b8926faf57aea59c9fbab56216
Improve docstringhttps://github.com/python/cpython/pull/124778/commits/b42783cb541de081740a8f8d1fc47a98c107f2a6
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
b42783chttps://github.com/python/cpython/pull/124778/commits/b42783cb541de081740a8f8d1fc47a98c107f2a6
https://github.com/python/cpython/tree/b42783cb541de081740a8f8d1fc47a98c107f2a6
Add a suitable mention in the docs + improve blurbhttps://github.com/python/cpython/pull/124778/commits/97b523e560749cb0d9a787488f2cf89a37baec9c
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
97b523ehttps://github.com/python/cpython/pull/124778/commits/97b523e560749cb0d9a787488f2cf89a37baec9c
https://github.com/python/cpython/tree/97b523e560749cb0d9a787488f2cf89a37baec9c
Docstring edithttps://github.com/python/cpython/pull/124778/commits/6c2addf193279709dc81c209a68e9864bd15eaad
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
6c2addfhttps://github.com/python/cpython/pull/124778/commits/6c2addf193279709dc81c209a68e9864bd15eaad
https://github.com/python/cpython/tree/6c2addf193279709dc81c209a68e9864bd15eaad
Edit the mention in the docshttps://github.com/python/cpython/pull/124778/commits/fb32c030f05c82cb535e8166f2bb007da0ea3537
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
fb32c03https://github.com/python/cpython/pull/124778/commits/fb32c030f05c82cb535e8166f2bb007da0ea3537
https://github.com/python/cpython/tree/fb32c030f05c82cb535e8166f2bb007da0ea3537
Minor docs edithttps://github.com/python/cpython/pull/124778/commits/722efe488553aed74c639451c85d66792741cc30
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
722efe4https://github.com/python/cpython/pull/124778/commits/722efe488553aed74c639451c85d66792741cc30
https://github.com/python/cpython/tree/722efe488553aed74c639451c85d66792741cc30
Fix/improve testshttps://github.com/python/cpython/pull/124778/commits/7b46a48f5f7bd8e2dbec6dc8ec7b4442fd5426e6
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
7b46a48https://github.com/python/cpython/pull/124778/commits/7b46a48f5f7bd8e2dbec6dc8ec7b4442fd5426e6
https://github.com/python/cpython/tree/7b46a48f5f7bd8e2dbec6dc8ec7b4442fd5426e6
Shorten blurb againhttps://github.com/python/cpython/pull/124778/commits/3d4116a44391cca33a8e322b69cf2ccba4a5a581
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
3d4116ahttps://github.com/python/cpython/pull/124778/commits/3d4116a44391cca33a8e322b69cf2ccba4a5a581
https://github.com/python/cpython/tree/3d4116a44391cca33a8e322b69cf2ccba4a5a581
Minor docs edithttps://github.com/python/cpython/pull/124778/commits/8eac1067da9826b8318a6ce6ff4e598f9d86c4d2
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
8eac106https://github.com/python/cpython/pull/124778/commits/8eac1067da9826b8318a6ce6ff4e598f9d86c4d2
https://github.com/python/cpython/tree/8eac1067da9826b8318a6ce6ff4e598f9d86c4d2
Docstring edithttps://github.com/python/cpython/pull/124778/commits/195666217a8172b7de7906ef8b9b9e88d2f30f9f
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
1956662https://github.com/python/cpython/pull/124778/commits/195666217a8172b7de7906ef8b9b9e88d2f30f9f
https://github.com/python/cpython/tree/195666217a8172b7de7906ef8b9b9e88d2f30f9f
Docs edithttps://github.com/python/cpython/pull/124778/commits/a77c3da0f74f4f9372d85b39b8c5f8bc2cf7502d
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
a77c3dahttps://github.com/python/cpython/pull/124778/commits/a77c3da0f74f4f9372d85b39b8c5f8bc2cf7502d
https://github.com/python/cpython/tree/a77c3da0f74f4f9372d85b39b8c5f8bc2cf7502d
Docstring edithttps://github.com/python/cpython/pull/124778/commits/b3b161f16157f392cf534e281cda7568e5fa25f1
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
b3b161fhttps://github.com/python/cpython/pull/124778/commits/b3b161f16157f392cf534e281cda7568e5fa25f1
https://github.com/python/cpython/tree/b3b161f16157f392cf534e281cda7568e5fa25f1
Minor test improvements/refactoringhttps://github.com/python/cpython/pull/124778/commits/949e66a1f56173b6e9f80eaa26eb0ca0531996c7
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
949e66ahttps://github.com/python/cpython/pull/124778/commits/949e66a1f56173b6e9f80eaa26eb0ca0531996c7
https://github.com/python/cpython/tree/949e66a1f56173b6e9f80eaa26eb0ca0531996c7
Add `time.strptime()`-dedicated testhttps://github.com/python/cpython/pull/124778/commits/059d4c5cacc40708ed75056a45ca8cb8c6d4acd3
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
059d4c5https://github.com/python/cpython/pull/124778/commits/059d4c5cacc40708ed75056a45ca8cb8c6d4acd3
https://github.com/python/cpython/tree/059d4c5cacc40708ed75056a45ca8cb8c6d4acd3
Minor test improvements/refactoringhttps://github.com/python/cpython/pull/124778/commits/95753acf1e4113171a431cfacc384e145b9b4b3f
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
95753achttps://github.com/python/cpython/pull/124778/commits/95753acf1e4113171a431cfacc384e145b9b4b3f
https://github.com/python/cpython/tree/95753acf1e4113171a431cfacc384e145b9b4b3f
Merge branch 'main' into strptime-c-and-y-fixhttps://github.com/python/cpython/pull/124778/commits/ed4582be09417cdbc9461e070e164bb6a324cc77
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
ed4582bhttps://github.com/python/cpython/pull/124778/commits/ed4582be09417cdbc9461e070e164bb6a324cc77
https://github.com/python/cpython/tree/ed4582be09417cdbc9461e070e164bb6a324cc77
Minor test improvementhttps://github.com/python/cpython/pull/124778/commits/990b0751074e5c35f8c782e212d7e8396e7f79dd
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
990b075https://github.com/python/cpython/pull/124778/commits/990b0751074e5c35f8c782e212d7e8396e7f79dd
https://github.com/python/cpython/tree/990b0751074e5c35f8c782e212d7e8396e7f79dd
Test improvements/refactoringhttps://github.com/python/cpython/pull/124778/commits/ecc359de010d06fed3c65197280a33ef46ac31dd
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
ecc359dhttps://github.com/python/cpython/pull/124778/commits/ecc359de010d06fed3c65197280a33ef46ac31dd
https://github.com/python/cpython/tree/ecc359de010d06fed3c65197280a33ef46ac31dd
Minor refactoringhttps://github.com/python/cpython/pull/124778/commits/6d690ca826c76d82058d61083ec43019f3d2c4f6
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
6d690cahttps://github.com/python/cpython/pull/124778/commits/6d690ca826c76d82058d61083ec43019f3d2c4f6
https://github.com/python/cpython/tree/6d690ca826c76d82058d61083ec43019f3d2c4f6
Merge branch 'main' into strptime-c-and-y-fixhttps://github.com/python/cpython/pull/124778/commits/4ad1062033b1c0a0569dfb9174b9c98032c2022c
https://github.com/zuo
zuohttps://github.com/python/cpython/commits?author=zuo
4ad1062https://github.com/python/cpython/pull/124778/commits/4ad1062033b1c0a0569dfb9174b9c98032c2022c
https://github.com/python/cpython/tree/4ad1062033b1c0a0569dfb9174b9c98032c2022c
Apply suggestion from @donbarboshttps://github.com/python/cpython/pull/124778/commits/c79a66b29e1b5bb22a8f423a56398a57bea159e2
zuohttps://github.com/python/cpython/commits?author=zuo
donbarboshttps://github.com/python/cpython/commits?author=donbarbos
c79a66bhttps://github.com/python/cpython/pull/124778/commits/c79a66b29e1b5bb22a8f423a56398a57bea159e2
https://github.com/python/cpython/tree/c79a66b29e1b5bb22a8f423a56398a57bea159e2
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.