Re: socket setdefaulttimeout

2005-08-13 Thread Sheila King
Bryan: Thanks for the tips/suggestion. I will definitely look into that. (It will be my first foray into coding with threads...I do appreciate that you've laid a great deal of it out. I will certainly refer to my references and do substantial testing on this...) Thanks! -- Sheila King

Re: socket setdefaulttimeout

2005-08-12 Thread Sheila King
On 08/12/2005 22:37:22 Bryan Olson <[EMAIL PROTECTED]> wrote: > Sheila King wrote: >> I'm doing DNS lookups [...] it is important to make sure that the socket >> doesn't just hang there waiting for a response. >> After a recent system upgrade to Python 2.

Re: socket setdefaulttimeout

2005-08-12 Thread Sheila King
I do note that the setdefaulttimeout is accomplishing something in my full program. I am testing some error handling in the code at the moment, and am raising an exception to make the code go into the "except" blocks... The part that sends an error email notice bombed due to socket timeout. (well

socket setdefaulttimeout

2005-08-12 Thread Sheila King
ossible? Thanks for any tips. Example code follows signature... -- Sheila King http://www.thinkspot.net/sheila/ #!/usr/local/bin/python2.4 import socket import sys from time import time, asctime, localtime socket.setdefaulttimeout(.1) debugfile = "socketdebug.txt" def debug(data

time.strftime in 2.4.1 claims data out of range when not

2005-04-21 Thread Sheila King
Also, the phrasing of the error message is a bit odd? "day of year out of range" I'm not sure what the day of a year would be??? Sheila King http://www.thinkspot.net/sheila/ -- http://mail.python.org/mailman/listinfo/python-list