472,342 Members | 1,300 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,342 software developers and data experts.

Need better run/edit method. I have to restart the shell after every script change.

Hello,

What I need to know is if there is a better method to run/edit modules
on my pc.
I'm currently running the IDLE shell under Python 2.5, on Windows XP.

Every time I edit my .txt or .py file, I have to restart the IDLE shell
for the changes to take effect. It's pretty annoying. Assuming IDLE is
already open, here are the steps that I typically take:

1. Open .txt version of module or script using notepad
2. make changes
3. save .txt file as .txt file
4. save .txt file as .py file
5. reset IDLE
6. import module again

As you can see, I'm wasting a lot of time with this method. Maybe
there is some better sofware available, or maybe I'm just not utilizing
the tools at my disposal. Either way I would greatly appreciate any
insight into this problem.

Thanks in advance,
Mark

Jan 11 '07 #1
3 1859
As you can see, I'm wasting a lot of time with this method. Maybe
there is some better sofware available, or maybe I'm just not utilizing
the tools at my disposal. Either way I would greatly appreciate any
insight into this problem.
why not try a more advanced IDE, like PyScripter ?

cheers,
Stef Mientki
Jan 11 '07 #2
Mark wrote:
I'm currently running the IDLE shell under Python 2.5, on Windows XP.

Every time I edit my .txt or .py file, I have to restart the IDLE shell
for the changes to take effect. It's pretty annoying. Assuming IDLE is
already open, here are the steps that I typically take:

1. Open .txt version of module or script using notepad
2. make changes
3. save .txt file as .txt file
4. save .txt file as .py file
5. reset IDLE
6. import module again
why do you involve notepad, and .txt files? Instead, try this:

1. Run Idle
2. Choose File/New Window
3. Edit your .py file, and save it as a .py file
4. Choose Run/Run Module
5. Make changes, and save again
6. Choose Run/Run Module
7. etc...

you don't need to close IDLE ever. IDLE refers to the editor, and the shell that
runs connected to it. If you have just the shell, you can open the editor with
File/New Window. If you have just the editor, you can choose Run/Python Shell or
Run/Run Module depending on what you want to do, to get the shell.

You can also take a .py file in the Windows explorer, right-click, and choose "Open
with IDLE" to start editing it directly.

You shouldn't save things as .txt, because then IDLE will not recognize it is python
you are writing, and the right-click trick probably won't work either. You should
never use Notepad, because it is just icky, and doesn't know about any programming
languages. :)

Hope this helps,

Brian Blais
--
-----------------

bb****@bryant.edu
http://web.bryant.edu/~bblais
Jan 11 '07 #3
Thanks guys. I'll give it a try.
Brian Blais wrote:
Mark wrote:
I'm currently running the IDLE shell under Python 2.5, on Windows XP.

Every time I edit my .txt or .py file, I have to restart the IDLE shell
for the changes to take effect. It's pretty annoying. Assuming IDLE is
already open, here are the steps that I typically take:

1. Open .txt version of module or script using notepad
2. make changes
3. save .txt file as .txt file
4. save .txt file as .py file
5. reset IDLE
6. import module again

why do you involve notepad, and .txt files? Instead, try this:

1. Run Idle
2. Choose File/New Window
3. Edit your .py file, and save it as a .py file
4. Choose Run/Run Module
5. Make changes, and save again
6. Choose Run/Run Module
7. etc...

you don't need to close IDLE ever. IDLE refers to the editor, and the shell that
runs connected to it. If you have just the shell, you can open the editor with
File/New Window. If you have just the editor, you can choose Run/Python Shell or
Run/Run Module depending on what you want to do, to get the shell.

You can also take a .py file in the Windows explorer, right-click, and choose "Open
with IDLE" to start editing it directly.

You shouldn't save things as .txt, because then IDLE will not recognize it is python
you are writing, and the right-click trick probably won't work either. You should
never use Notepad, because it is just icky, and doesn't know about any programming
languages. :)

Hope this helps,

Brian Blais
--
-----------------

bb****@bryant.edu
http://web.bryant.edu/~bblais
Jan 12 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Yitzhak | last post by:
I am having "Permission denied" error while calling LogEvent method of WScript.Shell component. Basically, ASP page calls Windows Script Host Shell...
2
by: Mike Button | last post by:
Hello all, I am really really desperate on what I should do, and I am asking for help from anyone in this newsgroup, here's the situation: I...
12
by: colincolehour | last post by:
I am new to Python and am working on my first program. I am trying to compare a date I found on a website to todays date. The problem I have is the...
13
by: gavino | last post by:
This seems easy but I have been asking tcl and python IRC chat all day and no one gave an answer. I have 100 servers which need a new backup server...
18
by: bsruth | last post by:
I tried for an hour to find some reference to concrete information on why this particular inheritance implementation is a bad idea, but couldn't. ...
0
by: Stu | last post by:
I x-posted this in the enhancements group as well, looking for some help: Need help with a CAS issue with WSE3. Enable an asp.net2 webapp to...
9
by: rn5a | last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB table. Users can modify the records using this DataGrid for which I am using...
5
by: bearophileHUGS | last post by:
For array.array "B" means unsigned char, and such arrays accept to be initialized from (str) strings too, this is quite useful: But it seems...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.