The error [__] object is not callable is an error that occurs when you write something like a function, not a function.
In the question, the
'int' object is not callable error occurred for
k(T, m+1), which means that
k is a variable of type
int rather than a function. Perhaps an integer variable called
k is used in the middle of the code, so the function defined by
defk(...) is obscured (called shadowing).
© 2022 pinfo. All rights reserved.