What’s The Point of `itemgetter()` in Python? • [Club]
You’ve come across `operator.itemgetter()`, but you feel it’s redundant? Let’s explore
The first time I saw itemgetter(), I did what I’d normally do when I come across a new tool. I looked up the docs, opened a REPL, and explored a bit.
And my reaction at first was: “So what?! This tool doesn’t do anything I couldn’t already do with other features in Python.”
So, why does itemgetter() exist?
But, before answering this question, let’s answer a more basic one…



