You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add support for ISO 8601 ordinal dates format #163170
The ordinal dates format from ISO 8601 are currently unsupported by the fromisoformat methods in datetime module, as stated in the documentation in both date and datetime:
Like the 2 other formats from the standard (calendar dates and week dates), it can be used with or without the - separator.
Example of usage inspired from the current doc:
Activity
gvanrossum commentedon Dec 4, 2026
Do you have a need for this in a real application? Or is this just completionism?
Hatovix commentedon Dec 4, 2026
It is completionism, I was surprised to see the unsupported mention in the doc
gvanrossum commentedon Dec 4, 2026
I don't believe we've ever received a request for this feature. (I personally think it would be a misfeature, because it's not human-readable.)