I am trying to set default values while defining a class method and the default values are defined in a config function. Something like this:
from config import var1, var2
class A():
def __init__(var_one=var1, var_two=var2):
#do something
Now, is it a good idea to get the default values from a config file. I am being skeptical because I think the class definition shouldn't have any dependency on other files. Should I pass all the variables while using the class only?