[issue43563] Use dedicated opcodes to speed up calls/attribute lookups with super() as receiver
Guido van Rossum
report at bugs.python.org
Mon Mar 22 16:49:58 EDT 2021
Guido van Rossum <guido at python.org> added the comment:
This looks like a sensible idea to me. The safeguards to ensure that customized 'super' still works seem reasonable to me. I have to admit that I sometimes refrain from using super() where I should because of the expense, so this would be welcome.
I do wonder -- is two-arg super() important enough to support it at all? Maybe the code would be somewhat simpler if the special opcodes were only generated for zero-arg super() calls.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43563>
_______________________________________
More information about the Python-bugs-list
mailing list