Python Dir
Dir function
The dir() function without argument return the list of names in the current local scope. The dir(object) function with argument return a list of valid attributes for the given object.
Examples
Example 1
>>> dir() ['__builtins__', '__doc__', '__loader__', '__name__', '__package__', '__spec__'] >>>
Example 2
>>> dir('__package__')