3 ms·
And if you're not going to leak an AttributeError from any code in your method, else hasattr will return False.
by Ysx 13y ago
And if you're not going to leak an AttributeError from any code in your method, else hasattr will return False.
3 ms·