Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Python
Posted by: M. Chris
Added: Apr 24, 2019 9:01 AM
Views: 1
Tags: no tags
  1.  
  2. if hasattr(obj, 'attr_name'):
  3.   # obj.attr_name exists.