MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/gev4g/every_single_time/c1n2dlr/?context=3
r/Python • u/voidptr • Mar 30 '11
58 comments sorted by
View all comments
9
I don't get it, what's the problem with removing trailing whitespace?
-1 u/voidptr Mar 30 '11 Say you have this code:1 if this: 2 dothis() 3 dothat() 4 5 nowdoanotherthing() 6 else: 7 die()If your editor removes the indentation from line 4, Python will kick an error. 7 u/ozzilee Mar 30 '11 edited Mar 30 '11 That works fine for me. Even this works fine:if True: print "hello" # No problem with comments or empty lines being unindented print "there"
-1
Say you have this code:
1 if this: 2 dothis() 3 dothat() 4 5 nowdoanotherthing() 6 else: 7 die()
If your editor removes the indentation from line 4, Python will kick an error.
7 u/ozzilee Mar 30 '11 edited Mar 30 '11 That works fine for me. Even this works fine:if True: print "hello" # No problem with comments or empty lines being unindented print "there"
7
That works fine for me. Even this works fine:
if True: print "hello" # No problem with comments or empty lines being unindented print "there"
9
u/[deleted] Mar 30 '11
I don't get it, what's the problem with removing trailing whitespace?