Fabio:
I have just been playing with the interactive console (as a result of
your recent posting on the Python newsgroup) and I have set 'Evaluate on
console on each new line (or only on request)?' to on.
I noticed this behaviour which may be a bug?
If I type:
for i in range (1,10):
print i,
print "foo"
into a file then I get this is in the console window:
for i in range (1,10):
print i,
print "foo"
File "<stdin>", line 3
print "foo"
^
SyntaxError: invalid syntax
However, if I type this: (an extra blank line)
for i in range (1,10):
print i,
print "foo"
then I get this in the console window:
for i in range (1,10):
print i,
1 2 3 4 5 6 7 8 9
print "foo"
foo
Don.
|