G
gabriel.becedillas
I have a module that defines a variable with a constant value and now I
need to make that value dynamic, without affecting module clients. In
other words, I need to call a function witout using parenthesis.
Example:
mymod.py----------------------
def value():
return "hi"
client.py--------------------------
import mymod
print mymod.value
Is there a way to do this ?
Thanks.
need to make that value dynamic, without affecting module clients. In
other words, I need to call a function witout using parenthesis.
Example:
mymod.py----------------------
def value():
return "hi"
client.py--------------------------
import mymod
print mymod.value
Is there a way to do this ?
Thanks.