[issue42990] Improve the C code for calling Python code: _PyEval_EvalCode()
STINNER Victor
report at bugs.python.org
Fri Feb 19 06:15:08 EST 2021
STINNER Victor <vstinner at python.org> added the comment:
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.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42990>
_______________________________________
More information about the Python-bugs-list
mailing list