This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Syntax Error in IDLE3 not in IDLE
Type: crash Stage:
Components: IDLE Versions: Python 3.2
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Littlejohn, nedbat, terry.reedy
Priority: normal Keywords:

Created on 2013-05-15 16:20 by Littlejohn, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
helloworld.py Littlejohn, 2013-05-15 16:20
Messages (3)
msg189288 - (view) Author: Hugh Littlejohn (Littlejohn) Date: 2013-05-15 16:20
New to Python, acquired Raspberry PI. Upgraded and now have IDLE and IDLE3.
Python 3.2.3 (default, Mar 1 2013, 11:53:50) (GNU 4.6.3] on Linux2

First task, New Window to create "Hello, World!"
Using IDLE3, created file helloworld.py
Using Run/ Check Module - failed with syntax error on the closing double-quote
Tried space before ending double-quote - failed
Tried reducing string to "Hello" - failed
Removed training end-of-line - failed

Closed IDLE3 and started IDLE
Loaded file as before - worked as expected

Restarted IDLE3 - still failed

Tried command-line "python helloworld.py" - worked as expected

Any ideas ?
msg189289 - (view) Author: Ned Batchelder (nedbat) * (Python triager) Date: 2013-05-15 16:36
Python 3 has no print statement, it has a print function, so you need:

    print("Hello, world!")
msg189303 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2013-05-15 20:55
Please ask questions like this on python-list, mirrored as newsgroup gmane.comp.python.general or on other forums. This tracker is for patching Python itself, not usage questions.
History
Date User Action Args
2022-04-11 14:57:45adminsetgithub: 62182
2013-05-15 20:55:29terry.reedysetstatus: open -> closed

nosy: + terry.reedy
messages: + msg189303

resolution: not a bug
2013-05-15 16:36:46nedbatsetnosy: + nedbat
messages: + msg189289
2013-05-15 16:20:36Littlejohncreate