This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yselivanov
Recipients Mark.Shannon, brett.cannon, gvanrossum, petr.viktorin, rhettinger, serhiy.storchaka, vstinner, yselivanov
Date 2021-02-17.23:48:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> I tried to implement such optimization in my old project. I implemented guards to de-optimize the code if a builtin is overriden.

FWIW the globals opcode cache handles all of this now. There's no point in specifically optimizing the builtins lookup since we optimize all global lookups for a code object that's hot enough.
Date User Action Args
2021-02-17 23:48:55yselivanovsetrecipients: + yselivanov, gvanrossum, brett.cannon, rhettinger, vstinner, petr.viktorin, Mark.Shannon, serhiy.storchaka
2021-02-17 23:48:55yselivanovsetmessageid: <>
2021-02-17 23:48:55yselivanovlinkissue42990 messages
2021-02-17 23:48:55yselivanovcreate