Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Check Whether a Python Object Is Callable

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

f = lambda x: 1
callable(f)
True
def fun():
    return 1
callable(fun)
True
x = 1
callable(x)
False