Pytz: The Fastest Footgun in the West (2018)
An explanation of the differences between dateutil and pytz's time zone models and why people tend to misuse pytz and introduce bugs into their datetime code.
Starting in Python 3, naïve datetimes stopped being considered "unitless" datetimes and started representing...
Visit blog.ganssle.io → On Hacker News Oct 2021 – May 2023
Software Engineering 3Programming Languages 2Tools & Productivity 1
An explanation of the differences between dateutil and pytz's time zone models and why people tend to misuse pytz and introduce bugs into their datetime code.
A public service announcement about the dangers of utcnow and utcfromtimestamp and the benefits of using their replacements.
The setup.py interface is an old convention from distutils, one that has bugs that cannot be fixed to bring it into line with modern Python packaging approaches. As a result, all direct...