Re: [Tutor] Scope Problem with Files

2005-12-14 Thread Carroll, Barry
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 <> > > > > sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) > > sock.settimeout(timetowait) > >

Re: [Tutor] Scope Problem with Files

2005-12-14 Thread bob
At 11:13 AM 12/14/2005, Carroll, Barry wrote: >Greetings: > >I am implementing a (crude but useful) debug facility in my test >system client software. Basically, I test the value of a global >Boolean. It True, I write pertinent data to a text file. I want to >do this in multiple functions in a

[Tutor] Scope Problem with Files

2005-12-14 Thread Carroll, Barry
Greetings: I am implementing a (crude but useful) debug facility in my test system client software. Basically, I test the value of a global Boolean. It True, I write pertinent data to a text file. I want to do this in multiple functions in a module. Rather than open and close the file each t