STINNER Victor <vstin...@python.org> added the comment:
> 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42990> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com