March 2003
Intermediate to advanced
656 pages
39h 30m
English
vars
vars([obj])When called with no argument, vars( ) returns a
dictionary that represents all variables that are bound in the
current scope (exactly like locals, covered in
this section). This dictionary should be treated as read-only.
vars(
obj
)
returns a dictionary that represents all attributes currently bound
in obj, as covered in
dir in this section. This dictionary may or may
not be modifiable, depending on the type of
obj.
Read now
Unlock full access