"has" Operator

Alex new_name at mit.edu
Sat Jul 7 17:19:18 EDT 2001


You can already do 

if hasattr(myobject, someattribute): foo()

Alex.



More information about the Python-list mailing list