@glyph @lattera Indeed. And in fact, now that I take a closer look at that code, there are some *really* inadvisable formatting choices in there. Including cases where the author was actively fighting against the way #Python normally encourages one to write code.
Not that I think this is what actually happened, but if someone specifically decided to create an example of how you can write code that's "properly indented" but still badly formatted and organized, I could see them coming up with something that looks like this.
Agreed. That level of indentation is an almost sure indicator of code that needs to be refactored, due to bad design.
And as you say, it's true regardless of the language. People were writing badly structured code with excessive levels of indentation before we were born, and will be long after we're gone.