]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-90750: Use datetime.fromisocalendar in _strptime (#103802)
authorPaul Ganssle <1377457+pganssle@users.noreply.github.com>
Thu, 27 Apr 2023 16:27:27 +0000 (10:27 -0600)
committerGitHub <noreply@github.com>
Thu, 27 Apr 2023 16:27:27 +0000 (10:27 -0600)
commita5308e188b810e5cc69c1570bdc9b21ed6c87805
treed18ea25d46c30ed94c2610c641baeb47e5c08624
parentb701dce340352e1a20c1776feaa368d4bba91128
GH-90750: Use datetime.fromisocalendar in _strptime (#103802)

Use datetime.fromisocalendar in _strptime

This unifies the ISO → Gregorian conversion logic and improves handling
of invalid ISO weeks.
Lib/_strptime.py
Lib/test/test_strptime.py
Misc/NEWS.d/next/Library/2023-04-24-16-00-28.gh-issue-90750.da0Xi8.rst [new file with mode: 0644]