On Fri, Jun 25, 2021 at 7:43 PM Stephen J. Turnbull firstname.lastname@example.org wrote:
Chris Angelico writes:
if it's a fallback after default behaviour fails (like __getattr__) [...] it's likely to impact performance a lot less.
I guess the effect on performance is that it takes one more check to get to AttributeError?
It also means that this code applies only when other things have failed, so high performance lookups will still be high performance. But there've been many variants of this proposal in this thread, all subtly different.