March 2003
Intermediate to advanced
656 pages
39h 30m
English
hasattr
hasattr(obj,name)
Returns False if obj
has no attribute name (i.e., if
getattr(
obj,name
)
raises AttributeError). Otherwise,
hasattr returns True. See also
Section 5.1.4.
Read now
Unlock full access