Hello Mr. Murray:

This is with regard to ISSUE 9519 and is a response to your question.

I am using Python 3.1.2 on a PPC running OS X 10.5.8 and using the IDLE
Python Shell. I use the Tutorial for Python 3.1 released 8/6/10 and go to
4.1 if Statements. In the Python Shell (IDLE) I begin typing the text
illustrated in example 4.1 and everything looks like the example down
through line 5 which reads print('Negative changed to zero') and when I hit
RETURN the cursor doesn't move back in line with the original if statement,
instead the cursor moves left only to the "p" of the print statement I had
just typed. So now I'm typing the first elif statement in the wrong
location, and when I hit RETURN again the system types in RED

SyntaxError: invalid syntax
>>>

And I note that the elif is highlighted in RED.

That's the problem description.

I tried the same thing using TERMINAL to run Python and it works okay, as
illustrated in example 4.1. So there would appear to be a problem when
trying to use example 4.1 from IDLE.

___________________________________

Repeated same two experiments using Python 3.1.2 on PC running Windows XP with all current Microsoft updates. Get same faulty result when I use IDLE, and it works as shown in example 4.1 when I use the command line interface.

Best regards,
Robert Buckley