MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/gev4g/every_single_time/c1n2qs3/?context=9999
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. 4 u/[deleted] Mar 30 '11 I just checked, no it doesn't (Python 2.7). 4 u/voidptr Mar 30 '11 And now I can't seem to replicate it. Heisenproblem. 10 u/desimusxvii Mar 30 '11 So the title "Every. Single. Time." was just a teensy bit BOLD. 5 u/voidptr Mar 30 '11 Hmmn, possibly, yes. But this was my entire fucking day yesterday.
-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.
4 u/[deleted] Mar 30 '11 I just checked, no it doesn't (Python 2.7). 4 u/voidptr Mar 30 '11 And now I can't seem to replicate it. Heisenproblem. 10 u/desimusxvii Mar 30 '11 So the title "Every. Single. Time." was just a teensy bit BOLD. 5 u/voidptr Mar 30 '11 Hmmn, possibly, yes. But this was my entire fucking day yesterday.
4
I just checked, no it doesn't (Python 2.7).
4 u/voidptr Mar 30 '11 And now I can't seem to replicate it. Heisenproblem. 10 u/desimusxvii Mar 30 '11 So the title "Every. Single. Time." was just a teensy bit BOLD. 5 u/voidptr Mar 30 '11 Hmmn, possibly, yes. But this was my entire fucking day yesterday.
And now I can't seem to replicate it. Heisenproblem.
10 u/desimusxvii Mar 30 '11 So the title "Every. Single. Time." was just a teensy bit BOLD. 5 u/voidptr Mar 30 '11 Hmmn, possibly, yes. But this was my entire fucking day yesterday.
10
So the title "Every. Single. Time." was just a teensy bit BOLD.
5 u/voidptr Mar 30 '11 Hmmn, possibly, yes. But this was my entire fucking day yesterday.
5
Hmmn, possibly, yes. But this was my entire fucking day yesterday.
9
u/[deleted] Mar 30 '11
I don't get it, what's the problem with removing trailing whitespace?