"has" Operator

Alex new_name at mit.edu
Sat Jul 7 23:19:18 CEST 2001


You can already do 

if hasattr(myobject, someattribute): foo()

Alex.



More information about the Python-list mailing list