Next:
The __doc__ attribute
Up:
Python basics
Previous:
The vars() built-in function
Contents
Index
The
dir()
built-in function
With no arguments, displays the whole list of variables, functions or other objects defined in the current name area. With a variable as argument, displays the list of attributes but also methods and other objects associated to this variable.