3 ms·
If it is a 0-ary method AND does not mutate the state of its instance.
by GuiA 13y ago
If it is a 0-ary method AND does not mutate the state of its instance.
- benjamincburns 13y ago... and if it's not likely to cause performance issues.
- Ysx 13y agoAnd if you're not going to leak an AttributeError from any code in your method, else hasattr will return False.