STINNER Victor <[email protected]> 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 <[email protected]>
<https://bugs.python.org/issue42990>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com