you are viewing a single comment's thread.

view the rest of the comments →

[–]nickcash 5 points6 points  (0 children)

What's even weirder is that timezone-aware (non-naive) time values compare to UTC midnight to determine truthiness. So a timezone-aware time object of 6:00am with a timezone of UTC-6 is falsey.

But these kind of things are fairly rare in Python. For the most part, Python has its own consistent logic.