Don’t use Python’s hasattr()
unless you want its quirks or are writing Python 3-only code.
↧
Hynek Schlawack: hasattr() Considered Harmful
↧
Don’t use Python’s hasattr()
unless you want its quirks or are writing Python 3-only code.