dir() does not list the names of built-in functions and variables : Dir « Buildin Function « Python






dir() does not list the names of built-in functions and variables

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

1.The dir FunctionThe dir Function
2.dir() Function: find out which names a module defines