initializing "parameters" class in Python only once?

2014-07-14 Thread Catherine M Moroney
Hello, Pardon me for not using the proper Python language terms, but I hope that people can still understand the question: The problem: I'm writing a large Python program and I have a bunch of parameters (whose values are static) that I want to make available to the rest of the code with mini

initializing "parameters" class in Python only once?

2014-07-14 Thread Catherine M Moroney
Hello, Pardon me for not using the proper Python language terms, but I hope that people can still understand the question: The problem: I'm writing a large Python program and I have a bunch of parameters (whose values are static) that I want to make available to the rest of the code with mini

using getattr/setattr for local variables in a member function

2013-11-21 Thread Catherine M Moroney
Hello, If I have a class that has some member functions, and all the functions define a local variable of the same name (but different type), is there some way to use getattr/setattr to access the local variables specific to a given function? Obviously there's no need to do this for the small