Thanks, Bob.  I figured it was something simple.  

BGC

________________________
"Never trust anything that can think for itself 
if you can't see where it keeps its brain" 
JK Rowling
 
<<snip>>

> >
> >     sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
> >     sock.settimeout(timetowait)
> >     retriesleft = retries
> >     if DEBUG:
> >         dbgf = open(dbgfname,mode="a")
> 
> dbgf is a local variable. If you want to reassign to the global you
must
> add
> global dbgf
> to the function
> 
> >         dbgf.write("\n"+str(time.localtime())+"\n")
> >


<<snip>>



_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to