March 2003
Intermediate to advanced
656 pages
39h 30m
English
dir
dir([obj])Called without arguments, dir( ) returns the
sorted list of all variable names that are bound in the current
scope.
dir(
obj
)
returns the sorted list of all names of attributes of
obj. In Python 2.1 and earlier,
dir does not return attributes that
obj gets from its type or by inheritance.
In Python 2.2 and later, dir returns all
attributes, including ones that are inherited and from its type. See
also vars in this section.