R. David Murray added the comment:
Oops. Yes, that's what I meant :) Thanks for the correction and link, Eric.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24106
___
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
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
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 rep...@bugs.python.org