473,405 Members | 2,262 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,405 software developers and data experts.

Pausing for Python Interpreter error messages...

I've written a few classes that I have been testing in IDLE. However,
every time I make a change to the classes based on the testing I have
to walk through all he steps of preparing the classes for testing
again.

So I wrote a script that does all the set-up work for me. The only
problem is when I run this script using the Python interpreter I can't
get the command prompt to stay up long enough for me to read the
message.

How do I get the command prompt to stay up? Is there a way to run my
script and view the error message in IDLE?

Thanks for the help.

Scott Huey

P.S. - I'm using Windows XP with the latest Python 2.3.

Jan 6 '07 #1
2 1618
re****************@gmail.com a écrit :
I've written a few classes that I have been testing in IDLE. However,
every time I make a change to the classes based on the testing I have
to walk through all he steps of preparing the classes for testing
again.

So I wrote a script that does all the set-up work for me.
You may want to have a look at the unittest module then:
http://docs.python.org/lib/module-unittest.html
The only
problem is when I run this script using the Python interpreter I can't
get the command prompt to stay up long enough for me to read the
message.

How do I get the command prompt to stay up?
first open the "command prompt", then launch your script from the
command prompt.
Is there a way to run my
script and view the error message in IDLE?
menu run->run module, or just hit the F5 key.
Thanks for the help.

Scott Huey

P.S. - I'm using Windows XP with the latest Python 2.3.
Python 2.3 is years old. Latest is 2.5.
Jan 6 '07 #2
Thanks Bruno.

I'll get the 2.5 python install, and I'm checking out the unit testing
module that you mentioned.

Scott Huey
Bruno Desthuilliers wrote:
re****************@gmail.com a écrit :
I've written a few classes that I have been testing in IDLE. However,
every time I make a change to the classes based on the testing I have
to walk through all he steps of preparing the classes for testing
again.

So I wrote a script that does all the set-up work for me.

You may want to have a look at the unittest module then:
http://docs.python.org/lib/module-unittest.html
The only
problem is when I run this script using the Python interpreter I can't
get the command prompt to stay up long enough for me to read the
message.

How do I get the command prompt to stay up?

first open the "command prompt", then launch your script from the
command prompt.
Is there a way to run my
script and view the error message in IDLE?

menu run->run module, or just hit the F5 key.
Thanks for the help.

Scott Huey

P.S. - I'm using Windows XP with the latest Python 2.3.
Python 2.3 is years old. Latest is 2.5.
Jan 7 '07 #3

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

Similar topics

6
by: Juho Saarikko | last post by:
The program attached to this message makes the Python interpreter segfault randomly. I have tried both Python 2.2 which came with Debian Stable, and self-compiled Python 2.3.3 (newest I could find...
6
by: Avi Berkovich | last post by:
Hello, I was unable to use popen2.popen4 to grab python.exe's (2.3) output, for starts, it doesn't show the version information at the beginning and won't return anything when writing to the...
3
by: Rakesh | last post by:
In my Python code fragment, I want to write a code fragment such that the minimum element of a tuple is subtracted from all the elements of a given tuple. When I execute the following python...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 378 open ( +3) / 3298 closed (+34) / 3676 total (+37) Bugs : 886 open (-24) / 5926 closed (+75) / 6812 total (+51) RFE : 224 open...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.