-
-
Notifications
You must be signed in to change notification settings - Fork 34.6k
Error in example of datetime.time.fromisoformat #112925
Copy link
Copy link
Closed
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc direasytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc direasytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
Done
Documentation
cpython/Doc/library/datetime.rst
Lines 1811 to 1812 in 5bf7580
I consider the correct example should be below.
>>> time.fromisoformat('04:23:01,000384') datetime.time(4, 23, 1, 384)python docs version
Linked PRs
datetime.time.fromisoformatand add doctest marker #112931datetime.time.fromisoformatand add doctest marker (GH-112931) #113427datetime.time.fromisoformatand add doctest marker (GH-112931) #113428