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 vstinner
Recipients Mark.Shannon, brett.cannon, gvanrossum, petr.viktorin, rhettinger, serhiy.storchaka, vstinner, yselivanov
Date 2021-02-18.17:01:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1613667698.05.0.147500171591.issue42990@roundup.psfhosted.org>
In-reply-to
Content
> You say it's on purpose, what's the purpose? Aren't you worried this is going to break stuff?

There is a subtle behavior difference between Python 3.9 and Python 3.10. func_builtins2.py of bpo-43228 works on Python 3.9 but fails on Python 3.10. With my PR 24564, func_builtins2.py works again on Python 3.10.

See bpo-43228 for the details.

> And why is this necessary given the LOAD_GLOBAL cache?

My PR 24564 is not related to LOAD_GLOBAL, but how a frame fills its f_builtins member from a function.

LOAD_GLOBAL uses f_globals and f_builtins members of a frame.
History
Date User Action Args
2021-02-18 17:01:38vstinnersetrecipients: + vstinner, gvanrossum, brett.cannon, rhettinger, petr.viktorin, Mark.Shannon, serhiy.storchaka, yselivanov
2021-02-18 17:01:38vstinnersetmessageid: <1613667698.05.0.147500171591.issue42990@roundup.psfhosted.org>
2021-02-18 17:01:38vstinnerlinkissue42990 messages
2021-02-18 17:01:38vstinnercreate