Message387304
I rephrased PR 24564 to clarify the scope of the incompatible change: in practice, only the types.FunctionType constructor changes.
Defining functions in Python using "def function(...): ...", eval(code, {}) and exec(code, {}) are not affected. eval() and exec() already inherit the current builtins if globals does not contain "__builtins__" key. |
|
Date |
User |
Action |
Args |
2021-02-19 11:15:09 | vstinner | set | recipients:
+ vstinner, gvanrossum, brett.cannon, rhettinger, petr.viktorin, Mark.Shannon, serhiy.storchaka, yselivanov |
2021-02-19 11:15:08 | vstinner | set | messageid: <1613733308.94.0.549749426794.issue42990@roundup.psfhosted.org> |
2021-02-19 11:15:08 | vstinner | link | issue42990 messages |
2021-02-19 11:15:08 | vstinner | create | |
|