dir() does not list the names of built-in functions and variables
# 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__)
Related examples in the same category