Tech article

Why Pendulum had to write the most cursed "+" operator in all of Python

No preview is available. Read the original article for the full story.

Hacker News | Oct 6, 2026 | ariebovenberg

Automated excerpt

Pendulum’s + counts elapsed time instead. and a good reason to use Pendulum. To convert a datetime, -> datetime. astimezone() # standard library (C) -> ZoneInfo. fromutc() # standard library (C): computes dt + offset -> DateTime. __add__() # Pendulum: which + did you mean? Interestingly, Pendulum’s own add() method already works this way. standard library’s.

Selected automatically from source text; not independently written or fact-checked. Read the original for full context.

Read the original article

Read next

AI briefing: recent picks

More tech news