Checking the existence of parsed variables

2008-01-23 Thread Gavin Lusby
Hello all, I am regularly writing programs that parses ever changing lists of variables. The method I do it is by loading it in to a dictionary of the form: d['variable_name']=variable_value So when it comes to a method that uses a required set of variables I have to make tens of the following st

File.write() not working in a sleepy loop

2008-02-19 Thread Gavin Lusby
Hello, I am getting odd behaviour when I am trying to write a file in a while loop with a sleep function call. I am trying to periodically change the number of jobs on a cluster depending on the current usage and a dummy version that does not require access to the cluster usage is attached at the