4 ms·
A Python 3.5 datetime.time of midnight was False, all other times were True. [edit: was False, fixed in 3.6]
by jjgreen 5y ago
A Python 3.5 datetime.time of midnight was False, all other times were True.
[edit: was False, fixed in 3.6]
- justin_oaks 5y agoLooks like this was a bug and has been fixed in later version of Python. For the story: https://lwn.net/Articles/590299/ https://lwn.net/Articles/590299/ It may have been fixed, but it never should have been. How odd. Thanks for adding it. That's an interesting one that I had never heard of.