Display a list of user defined functions in the Python IDLE session

This should give you a list of all functions in the global scope:

import types
print([f for f in globals().values() if type(f) == types.FunctionType])

This should work:

print([f for f in dir() if f[0] is not '_'])

Tested on version 3.5.2.

dir() will essentially give you a list of callable objects within the current scope.


If I understand the question... try dir()

import my_module
dir(my_module)

just edit what lunixbochs wrote

def fun(): pass
print([f.__name__ for f in globals().values() if type(f) == type(fun)])