-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Compare of datetime.time ignores tz microseconds #99772
Copy link
Copy link
Closed
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Activity
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
- StatusShow more project fieldsDone
Bug report
Compare operations of datetime.time values ignore microseconds in timezone offsets. These operations might return wrong results in the rare event that timezone offsets contain microseconds.
Show case:
Both statements should return
False.Your environment
CPython versions tested on:
Python 3.7.15, 3.10.8, 3.11.0, 3.12.0a2 locally compiled
Python 3.8.10, 3.9.5 from Ubuntu repo
Operating system and architecture:
Ubuntu 20.04.5 (amd64)
Patch is on the way
Linked PRs