SIGN IN SIGN UP

gh-117534: Add checking for input parameter in iso_to_ymd (#117543)

Moves the validation for invalid years in the C implementation of the `datetime` module into a common location between `fromisoformat` and `fromisocalendar`, which improves the error message and fixes a failed assertion when parsing invalid ISO 8601 years using one of the "ISO weeks" formats.

---------

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
V
Vlad4896 committed
d5f1139c79525b4e7e4e8ad8c3e5fb831bbc3f28
Parent: a25c02e
Committed by GitHub <noreply@github.com> on 4/9/2024, 5:53:00 PM