On Sat, Jan 05, 2002 at 07:34:52AM -0800, Mark McEahern wrote:
> Ladislav:
> > Hello,
> > My program sometimes raise the exception
> >
> > socket.error: (10061, 'Connection refused')
> >
> > How can I handle this kind of exception?
>
> try:
> # your code that's failing
> except:
> #
On Fri, Jan 04, 2002 at 03:48:34PM -0500, Craig Hurley wrote:
> I have 2 classes that are tk windows, one is a child of the other.
> At the top level of the file the parent is made as 'app'. The child
> class is spawned from inside the parent class. When the child class is
> started several butto
[Bob Kline]
> ...
> I have made some progress in my debugging of the problem. In fact it
> appears that the problem stems from a wide discrepancy in the amount of
> time consumed by a call to fopen() on the two machines. A test repro
> written in C with loops to repeatedly attempt to open the fi
Hi Ladislav
> Hello,
> My program sometimes raise the exception
>
> socket.error: (10061, 'Connection refused')
>
> How can I handle this kind of exception?
Enclose it in try, except socket.error. ie.:-
try:
#do stuff here
except socket.error:
#handle exception here
Andy
> Thank you for
Ladislav:
> Hello,
> My program sometimes raise the exception
>
> socket.error: (10061, 'Connection refused')
>
> How can I handle this kind of exception?
try:
# your code that's failing
except:
# what you want to do when it fails
// mark
__
Hello,
My program sometimes raise the exception
socket.error: (10061, 'Connection refused')
How can I handle this kind of exception?
Thank you for help.
Ladislav
___
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/l
I have been plowing through docs and books for a day trying to answer
this to not avail. If someone could answer or point me to docs I would
be very happy.
I'm sure it is a simple case that I over looked somewhere.
I have 2 classes that are tk windows, one is a child of the other.
At the t
I think some of what you are looking for is documented in the PythonWin
Help. Under it select Python Manuals | Win32 Extensions Reference |
Modules | win32file. There are a number of Comm related functions
listed, such as GetCommState, ClearCommError, etc. I do not see any
parallel port related fu