I hope this question doesn't seem too naive or silly, but I would just like to get a definite answer as confirmation.
Is it possible to set a variable to call to a function?
i.e
def func():
print "test"
var = [something magical + func]
then if you had typed/used just var
it would output test
?
In other words, is there an alternate way to calling a function without the use of parenthesis if it never requires (or accepts) arguments [in Python]?
I am assuming this isn't possible as you always required to use"()" to call a function, but I am curious if there might be any exceptions?