Martin Heinz martinheinz.dev

The unknown features of Python's `operator` module  ↦

At the first glance Python’s operator module might not seem very interesting. It includes many operator functions for arithmetic and binary operations and a couple of convenience and helper functions. They might not seem so useful, but with help of just a few of these functions you can make your code faster, more concise, more readable and more functional. So, in this article we will explore this great Python module and make the most out of the every function included in it.


Discussion

Sign in or Join to comment or subscribe

0:00 / 0:00