[issue24106] Messed up indentation makes undesired piece of code being run!
jentyk
report at bugs.python.org
Fri May 1 19:15:47 CEST 2015
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 true. Seriously??
Is the behaviour intentional? I do not think so...
----------
components: Interpreter Core
messages: 242336
nosy: jentyk
priority: normal
severity: normal
status: open
title: Messed up indentation makes undesired piece of code being run!
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24106>
_______________________________________
More information about the Python-bugs-list
mailing list