This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Mark.Shannon, brett.cannon, gvanrossum, petr.viktorin, rhettinger, serhiy.storchaka, vstinner, yselivanov
Date 2021-02-19.11:15:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1613733308.94.0.549749426794.issue42990@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-02-19 11:15:09vstinnersetrecipients: + vstinner, gvanrossum, brett.cannon, rhettinger, petr.viktorin, Mark.Shannon, serhiy.storchaka, yselivanov
2021-02-19 11:15:08vstinnersetmessageid: <1613733308.94.0.549749426794.issue42990@roundup.psfhosted.org>
2021-02-19 11:15:08vstinnerlinkissue42990 messages
2021-02-19 11:15:08vstinnercreate