473,410 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

how does the main module notice when I change a module

I use PythonWin on WinXP. Every time I change a module, I have to
leave PythonWin and re enter to make it notice I have made changes. I
guess this is not the normal way to do that.. do I have to store the
module at a specific place? Is there a kind of "reset" command to make
the main module update specific data?
Jul 18 '05 #1
2 1721

"Irmen de Jong" <irmen@-NOSPAM-REMOVETHIS-xs4all.nl> wrote in message
news:3f***********************@news.xs4all.nl...
Marcus Schneider wrote:
I use PythonWin on WinXP. Every time I change a module, I have to
leave PythonWin and re enter to make it notice I have made changes. I
guess this is not the normal way to do that.. do I have to store the
module at a specific place? Is there a kind of "reset" command to make
the main module update specific data?
Doesn't "reload(MyModule)" work?
Type it at the interactive prompt.


Sometimes it does, sometimes it doesn't. It depends on exactly how your
application is configured, and the last thing I want to do is switch to the
command screen to type something in to run a test, and then have to run
the test as well. Extra work is, well, extra work.

Frankly, I gave up trying to test directly under PythonWin a long time
ago. Now, I just use it for editing, and keep a command window open
for testing. I've got a script for each test module (I use unittest in true
XP test first fashion), and it's almost as fast to switch to the command
window and enter two characters and a return as it would be to make
sure the correct file is selected, go to the menu, select test and
hit enter.

I've heard rumblings that the latest version of Idle (the one shipped
with 2.3) runs your tests in a separate process so this problem doesn't
happen. However, I haven't installed 2.3 yet to check it out. It might
be time to check out Idle if it does indeed create a new process for
each test.

John Roth

--Irmen

Jul 18 '05 #2

"John Roth" <ne********@jhrothjr.com> schrieb im Newsbeitrag
news:vj************@news.supernews.com...
[..]>
I've heard rumblings that the latest version of Idle (the one shipped
with 2.3) runs your tests in a separate process so this problem doesn't
happen. However, I haven't installed 2.3 yet to check it out. It might
be time to check out Idle if it does indeed create a new process for
each test.

John Roth


There is generally no need to install Python 2.3 for another IDLE. I could
use the IDLE 1.0 coming with with 2.3 under 2.3 - though I am not quite
content with it....

There is a IDLEfork Project http://idlefork.sourceforge.net/ where all the
new IDLEs come from...

My favourit is IDLE 0.81 which is shipped with VPYTHON, but you probably can
find it the archives.
Under Windows 2000 it (0.81) does not come up the first time when opening it
from Windows (Edit with....), Newer versions 0.9, 1.0 do, but they as well
open a command line window every time. This not only pollutes the desktop
but sometimes hangs up the communication. After a while you will find
youself with 10 or more interpreters in the background and you have to kill
them with the task manager.....

The mechanism they use is internal TCP/IP communication. This as I mentioned
can hang up. You than need not restart WIndows but just clean up all the
Pythons lurking in the background...
Kindly
Michael P
Jul 18 '05 #3

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

Similar topics

2
by: syed_saqib_ali | last post by:
I have a file named testPython.py as shown below. I have shown a trace of the Interpreter Session in which I import the modules from this file using the command: "from testPython import *" When...
9
by: Frank Rizzo | last post by:
I understand the basic premise: when the object is out of scope or has been set to null (given that there are no funky finalizers), executing GC.Collect will clean up your resources. So I have...
16
by: Adam Honek | last post by:
This is probably the most silly question asked here but I just can't figure it out. In VB6 letting Sub Main() be the app's startup directory was real easy under project properties. In VB.Net...
9
by: TechN00b | last post by:
I'm trying to write a quick commandline app that takes a string from the commandline and returns a formatted md5 hash. Unfortunately the code won't comple and returns an error of "No accessible...
18
by: cj | last post by:
members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe. I'm under the impression before you can use a class you have to make an...
15
by: Pucca | last post by:
I'm getting an error when I tried to use this BerConverter class in my C# code. Even though the Interent doc says that it runs on Win2000 sp4, I just thgouth I'll double check. Does anyone know...
113
by: John Nagle | last post by:
The major complaint I have about Python is that the packages which connect it to other software components all seem to have serious problems. As long as you don't need to talk to anything outside...
6
by: ai | last post by:
It assumes that there is a module A which have two global variables X and Y. If I run "import A" in the IDLE shell, then I can use A.X and A.Y correctly. But if I want to change the module A and...
7
by: =?Utf-8?B?VGVycnkgSG9sbGFuZA==?= | last post by:
I have a vb.net app that opens an excel worksheet, reads data and then closes the sheet. Im noticing that the Excel process is still running after I have closed and disposed of my excel objects. ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.