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

3 pointsposted 5 hours ago
by ariebovenberg

1 Comments

ariebovenberg

5 hours ago

Author here. I ran into this while comparing Pendulum with `whenever`, the datetime library I maintain. I sent a patch that removes the hack, but the post is about why the underlying design can't be patched the same way. Happy to answer questions.