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
user@Dell-XPS-15-9530:~$ python3
Python 3.10.14 (main, Apr 6 2024, 18:45:05) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license"for more information.
The docs you linked to are for the latest Python 3 release (currently 3.13). The 3.10 docs for datetime.datetime.fromisoformat() doesn't have that example because Z is not supported in that version.
Welp, I feel a bit silly for the wrong docs.
I know there is no bug fixing, but would it be possible to update the documentation at datetime.isoformat() from
'Return a string representing the date and time in ISO 8601 format' to
'Return a string representing the date and time in an ISO 8601 compliant format' ?
I read that first line and assumed it could output anything ISO 8601 [definitely my bad], but a bit of clarity might help prevent similar reports in the future.
Bug report
Bug description:
Datetime fromisoformat() not parsing string with trailing 'Z'
Environment information
Documentation page example and expected result:
Testing on 3.12.8 [GCC 11.4.0] worked as expected
CPython versions tested on:
3.10
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: