Re: How can handle exception?

2002-01-10 Thread Trent Mick
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: > #

Re: Instance manipulation

2002-01-10 Thread Trent Mick
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

RE: Mysterious delay in Python module loading (fwd)

2002-01-10 Thread Tim Peters
[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

Re: [Tutor] How can handle exception?

2002-01-10 Thread Andy W
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

RE: How can handle exception?

2002-01-10 Thread Mark McEahern
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 __

How can handle exception?

2002-01-10 Thread A
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

Instance manipulation

2002-01-10 Thread Craig Hurley
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

Re: Sw for serial and parallel ports.

2002-01-10 Thread Martin Miller
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