python how to get list of all functions in library code example Example: how to know all methods in a module in python >>> import re >>> dir(re)