Snippets tagged “inspect”
1 snippet uses this tag.
- How to list all functions in a module?Python
To list all functions in a module, you can use the dir() function to get a list of all the names defined in the module, and then use the inspect module to check if each name is a function.