Next:
id()
Up:
Built-in Functions
Previous:
globals() (example from 00-start.py)
Contents
Index
hasattr()
Tests whether an object has an attribute:
>>> import time >>> hasattr( time, "sleep") True