[Tutor] atr in dir Vs. hasattr

Tim Johnson tim at johnsons-web.com
Wed Mar 16 02:00:44 CET 2011


 What is the difference between using
 hasattr(object, name)
 and
 name in dir(object)
 ?
 TIA
-- 
Tim 
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com


More information about the Tutor mailing list