Re:Whenever – typed and DST-safe datetimes for Python
by scott_w on Sunday April 13, 2025 @10:07AM
(#43672915)
Given the list of issues (most of which I had never heard of) that the library author describes with datetime, I think I trust his tests over the ones I’d write.
Given how many tests I see fail on 29th February at the companies I’ve been at, I don’t trust my colleagues’ tests either!
Re:Whenever – typed and DST-safe datetimes for Python
by brookst on Sunday April 13, 2025 @10:19AM
(#43673000)
In a previous job where we had complete hell with an internal datetime lib under ambiguous ownership, a colleague joked that the original authors had taken early retirement when they turned 2,147,483,647 years old.
But yeah, you will have to create tests for the codepath, instead of relying on the tests the library maintainers create.