Author terry.reedy
Recipients Rosuav, terry.reedy
Date 2013-10-21.20:36:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1382387790.29.0.78992855571.issue19335@psf.upfronthosting.co.za>
In-reply-to
Content
This started as a python-list thread. On that thread, Peter Otten verified the behavior on Linux, so it is not specific to the Windows pythonw executable. He also verified on 3.2 (which gets security fixes only) and 3.4. I just checked 2.7. On that thread, I verified a) the three lines submitted by themselves as a file cause the same error message, as they should ("must refer to pre-existing bindings in an enclosing scope ") and b) Python in interactive mode syntax-checks lines as entered, even for compound statements. I just verified that Idle behaves the same when started with -n (no subprocess):
C:\Programs\Python33>python -m idlelib.idle -n

Summary: Idle acts as if it syntax-checks the cumulative input instead of just the line entered. (But I have not looked as the code.)

The three lines constitute a test if they can be run from a test file.
History
Date User Action Args
2013-10-21 20:36:30terry.reedysetrecipients: + terry.reedy, Rosuav
2013-10-21 20:36:30terry.reedysetmessageid: <1382387790.29.0.78992855571.issue19335@psf.upfronthosting.co.za>
2013-10-21 20:36:30terry.reedylinkissue19335 messages
2013-10-21 20:36:30terry.reedycreate