Calling Function Without Parentheses!
maxm at mxm.dk
Sun Jan 2 22:03:16 EST 2005
> What a debug nightmare! I just spent HOURS running my script through
> the debugger, sprinkling in log statements, and the like, tracking down
> my problem.
> I called a function without the ending parentheses. I sure do WISH
> Python would trap it when I try to do the following:
Actually you want use a method as an ordinary variable without calling
it in many cases. It is often used in a dynamic language.
A simple example is:
result = 
a = result.append
hilsen/regards Max M, Denmark
IT's Mad Science
More information about the Python-list