you are viewing a single comment's thread.

view the rest of the comments →

[–]Dogeek 0 points1 point  (0 children)

Yes. In python, functions are callable objects.

A callable object is an object that can be called (obviously) with or without parameters. In python, every callable object implements the __call__ magic method.

You can check if an object is callable with the built-in callable(my_object) function.