I find that 100 to 120 characters is ideal as far as line length goes. In my
opinion, splitting lines is much worse in terms of cognitive burden than just a
longer line. On top of that, it's not uncommon to reach 6, even 7 indentation
levels. All it takes is a loop in a loop (looping through an
I knew that you can just chain try/except blocks, and it's how I do it now, but
the example I provided wasn't very realistic.
Take for example the initialization of a class from a config file, config file
which may or may not have certain keys in it. With many keys, it is very
inconvenient to ch