datetime.strptime without a year fails on Feb 29 · Issue #70647 · python/cpython · GitHub

github.com

Tin mới

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

docsDocumentation in the Doc dir

stdlibStandard Library Python modules in the Lib/ directory

type-featureA feature request or enhancement

gh-70647: Better promote how to safely parse yearless dates in datetime. #116179

gh-70647: Add detail to error message when parsing a bad day of month. #116184

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

gh-70647: Raise a more informative error for when date is out of range #131335

[3.12] gh-70647: update docs to mention the datetime 1900 year default 2/29 issue #131534

[3.14] gh-70647: Better promote how to safely parse yearless dates in datetime. (GH-116179) #143037

[3.13] gh-70647: Better promote how to safely parse yearless dates in datetime. (GH-116179) #143038

GH-70647: Remove support for %d (and deprecate for %e) without year in strptime() #144570

Date and time issues 🕰️