[issue24106] Messed up indentation makes undesired piece of code being run!

2015-05-01 Thread R. David Murray
R. David Murray added the comment: Oops. Yes, that's what I meant :) Thanks for the correction and link, Eric. -- ___ Python tracker ___ ___

[issue24106] Messed up indentation makes undesired piece of code being run!

2015-05-01 Thread Eric V. Smith
Eric V. Smith added the comment: I think David meant the "else" clause on a "for" statement: https://docs.python.org/2/reference/compound_stmts.html#the-for-statement -- nosy: +eric.smith ___ Python tracker __

[issue24106] Messed up indentation makes undesired piece of code being run!

2015-05-01 Thread R. David Murray
R. David Murray added the comment: Whitespace is significant in Python. This is a fundamental part of the language. So yes, this is intentional. (Look up what the 'else' clause means on an if statement in the language reference.) -- nosy: +r.david.murray resolution: -> not a bug st

[issue24106] Messed up indentation makes undesired piece of code being run!

2015-05-01 Thread jentyk
New submission from jentyk: In [14]: for i in xrange(10): : if 1==1: : print "It's true" : else: : print "It isn't true. Seriously??" : It's true It's true It's true It's true It's true It's true It's true It's true It's true It's true It isn't t