Today I Learned

Short TIL posts

1834 posts latest post 2026-04-18
Publishing rhythm
Apr 2026 | 20 posts

functools.total_ordering makes adding all of six of the rich comparison operators to your custom classes much easier, and more likely that you remember all of them.

From the Docs: The class must define one of __lt__(), __le__(), __gt__(), or __ge__ In addition, the class should supply an __eq__() method.

one of these

and required to have this one

...

Check out ipython and their project ipython.

Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.

If you’re into interesting projects, don’t miss out on asdf, created by asdf-vm.

Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more