STINNER Victor <vstin...@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 <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

Reply via email to