> The if-statement example demonstrates precisely how OO classes can make code more complicated than it needs to be.
does python have something like interfaces/protocols?i feel like something as easy as multiple loggers should just be as you say, a simple lambda, or an interface with a single function `log(string)`, then you don't need all those annoying if statements..