Simon Willison’s Weblog

Subscribe

4th August 2023

TIL Checking if something is callable or async callable in Python — I wanted a mechanism to check if a given Python object was "callable" - could be called like a function - or "async callable" - could be called using `await obj()`.

Recent articles

This is a beat by Simon Willison, posted on 4th August 2023.

Monthly briefing

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.

Pay me to send you less!

Sponsor & subscribe