1/13/2016
•
EN
hasattr() – A Dangerous Misnomer
Explains why Python's hasattr() function is dangerous and misleading, especially in Python 2, and recommends using try/except or getattr() instead.