Message387245
> 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. |
|
Date |
User |
Action |
Args |
2021-02-18 17:01:38 | vstinner | set | recipients:
+ vstinner, gvanrossum, brett.cannon, rhettinger, petr.viktorin, Mark.Shannon, serhiy.storchaka, yselivanov |
2021-02-18 17:01:38 | vstinner | set | messageid: <1613667698.05.0.147500171591.issue42990@roundup.psfhosted.org> |
2021-02-18 17:01:38 | vstinner | link | issue42990 messages |
2021-02-18 17:01:38 | vstinner | create | |
|