Message5126
The issue turns out is the inability for the interactive interpreter
to raise a SyntaxError if a non-indented line follows (for example) a
for loop or function declaration.
The following code reproduces the scenario:
>>> for i in range(5):
... print i
... print 'Should raise Syntax Error'
...
...
So does:
>>> def myfunction():
... print 'Hello World'
... print 'Should raise Syntax Error'
...
...
Extra dots are me hitting enter eky with no SyntaxError being
generated by the last print statement. |
|
Date |
User |
Action |
Args |
2009-09-09 13:24:16 | funkychocobo | set | messageid: <1252502656.21.0.930191299086.issue1460@psf.upfronthosting.co.za> |
2009-09-09 13:24:16 | funkychocobo | set | recipients:
+ funkychocobo, fwierzbicki |
2009-09-09 13:24:16 | funkychocobo | link | issue1460 messages |
2009-09-09 13:24:15 | funkychocobo | create | |
|