473,386 Members | 1,773 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,386 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 1617
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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
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
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...

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.