Python indentation in "empty lines"
Posted
by niscy
on Stack Overflow
See other posts from Stack Overflow
or by niscy
Published on 2010-04-28T08:53:53Z
Indexed on
2010/04/28
9:03 UTC
Read the original article
Hit count: 157
Which is preferred ("." indicating whitespace)?
A)
def foo():
x = 1
y = 2
....
if True:
bar()
B)
def foo():
x = 1
y = 2
if True:
bar()
My intuition would be B (that's also what vim does for me), but I see people using A) all the time. Is it just because most of the editors out there are broken?
© Stack Overflow or respective owner