python - What does "TypeError 'xxx' object is not callable ...
stackoverflow.com › questions › 21324940Jan 24, 2014 · That error occurs when you try to call, with (), an object that is not callable. A callable object can be a function or a class (that implements __call__ method). According to Python Docs: object.__call__(self[, args...]): Called when the instance is “called” as a function. For example: x = 1 print x() x is not a callable object, but you are trying to call it as if it were it. This example produces the error: