# dir() does not list the names of built-in functions and variables. # If you want a list of those, they are defined in the standard # module __builtin__: import __builtin__ print dir(__builtin__)