Message5126

Author funkychocobo
Recipients funkychocobo, fwierzbicki
Date 2009-09-09.13:24:15
SpamBayes Score 0.002810431
Marked as misclassified No
Message-id <1252502656.21.0.930191299086.issue1460@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-09-09 13:24:16funkychocobosetmessageid: <1252502656.21.0.930191299086.issue1460@psf.upfronthosting.co.za>
2009-09-09 13:24:16funkychocobosetrecipients: + funkychocobo, fwierzbicki
2009-09-09 13:24:16funkychocobolinkissue1460 messages
2009-09-09 13:24:15funkychocobocreate