Question regarding indirect function calls
hammer at maxwell.com
Mon Apr 14 05:01:21 CEST 2003
In reply to: Jack & Alex:
Thanks for your advice, I did get it working using "getattr" as you
Great! now I have another questions, since I have your attention :-)
What is the most efficient way of accessing global variables across
I have main.py which parses a config file and sets up config values
appropriately. Different values are required by different functions in
I have tried defining the config values as global in main, AND in the
other modules - but does not work (get undefine errors).
config_values = 
try to access config_values fails - not found
So what I am currntly doing is passing what ever config values are needed
through the function call
How would you do this??
Once again thanks for help with indirect calls.
More information about the Python-list