check instance has an attribute in python

Solutions on MaxInterview for check instance has an attribute in python by the best coders in the world

showing results for - "check instance has an attribute in python"
Pia
08 Jan 2017
1if hasattr(a, 'property'):
2    a.property
3
Jana
08 Aug 2018
1if hasattr(a, 'property'):
2    a.property
3
similar questions
queries leading to this page
check instance has an attribute in python