[Python-bugs-list] [ python-Feature Requests-543222 ] IDLE Shell window RunScript warning

noreply@sourceforge.net noreply@sourceforge.net
Fri, 12 Apr 2002 14:45:40 -0700


Feature Requests item #543222, was opened at 2002-04-12 21:45
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=355470&aid=543222&group_id=5470

Category: IDLE
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Raymond Hettinger (rhettinger)
Assigned to: Nobody/Anonymous (nobody)
Summary: IDLE Shell window RunScript warning 

Initial Comment:
Alter IDLE's ScriptBinding.py to provide a warning if 
called from the shell window instead of a program 
window.

Also, consider providing a warning for File Save or 
SaveAs from the shell window.

The purpose of the warnings is handle a newbie problem 
of typing a program in the interpreter, trying to save 
it from there with File SaveAs mymprog.py, and trying 
to run it with F5 from the shell window.

Here is an except of a dialogue on help@python.org:

[beginner]
'''I have several programs I've written and saved.  I 
have saved them as ' save ' , ' save as ' , ' save 
copy ';  but when I try to run the program I get the 
same response from the GUI, name error: name ' ' not 
defined.  The exact procedure I use is: I bring up the 
GUI; click on file; click open; click the program I 
want to run.  Then when that window opens I click 
Edit; then Run Script. When that opens I type ; 
filename ( )  to run the program and all I get is " 
filename not defined" which I'm assuming means I have 
to rewrite the entire program each time I want to use 
it.'''

[helper]
'''IDLE has an interpreted mode (indicated by the >>> 
prompt) -- that is not the place to write and save 
your program.  Select File New to create a new blank 
page for your program. Type in the program (only 
once!) and select File SaveAs myprog.py.  Next, press 
F5 which will run your program. '''

[beginner]
''' So, your saying WRITE the program on the blank 
screen , the one without the prompts, etc ? Then save 
it to file "save as" ?  I never knew that was the way 
it's to be done. I've written every program I've done 
on the idle screen.  I really appreciate your help '''






----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=355470&aid=543222&group_id=5470