managing properties/configurations

Venkatraman.S. venkat83 at gmail.com
Fri May 16 02:38:21 EDT 2008


Or a better example would be:

I have the params in a config file and import this module:
myconfig.py
a=10
b=30
c=31
d=40

import myconfig
def checkCutoff(self,up,down):
       .............do some processing........
       if (a <= score <= b):
                result="Bad"
       elif (c <= score <= d):
                result="Good"
       .............do some processing........
       return result

Now when i 'manually' make some changes to the value of a,b,c,d then
the the checkCutoff func should refer to the new values.

-Venkat



More information about the Python-list mailing list