Braces after if, for, while, switch, etc. are on the same line, and yes, it was to save space on the 80x24 screen.
Get a copy of "The C Programming Language, Second Edition". It's right in there. It's the only technical computer book I know that is still accurate after more than twenty years.
I also recommend reading the Linux kernel style guide http://www.kernel.org/doc/Documentation/CodingStyle . It's fun to read and has some good points. Sticks quite close to K&R.
> ... if you need more than 3 levels of indentation, you're screwed anyway, and should fix your program.
class A:
def foo(self):
while cond:
if othercond:
bar()
Uh oh, four indentation levels!In Python you have very different characteristics, and have to adapt styles.
You should not get deeper than 3 logic indentations on function level there either, though.
And from my experience, 8 character tabs (with the article you cited actually starts with) are still workable in Python, at least for me.
Very handy.