On Fri, Jun 25, 2021 at 7:43 PM Stephen J. Turnbull
<[email protected]> 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.

ChrisA
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/2ES5H7LDK3AN6KJ5UY3EDZ2Y2EEHVSOH/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to