From 44db94c154142f51349bf6ae513206b6345f00f7 Mon Sep 17 00:00:00 2001 From: palakkhinvasara Date: Thu, 16 Jul 2026 19:26:40 +0530 Subject: [PATCH 1/2] gh-: Remove obsolete 'condition list' from eval() docs --- Doc/library/functions.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index a4d37beb436899..14e908df20aa05 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -610,10 +610,9 @@ are always available. They are listed here in alphabetical order. This function executes arbitrary code. Calling it with untrusted user-supplied input will lead to security vulnerabilities. - The *source* argument is parsed and evaluated as a Python expression - (technically speaking, a condition list) using the *globals* and *locals* - mappings as global and local namespace. If the *globals* dictionary is - present and does not contain a value for the key ``__builtins__``, a +The *source* argument is parsed and evaluated as a Python expression +using the *globals* and *locals* mappings as global and local namespace +.If the *globals* dictionary is present and does not contain a value for the key ``__builtins__``, a reference to the dictionary of the built-in module :mod:`builtins` is inserted under that key before *source* is parsed. Overriding ``__builtins__`` can be used to restrict or change the available From 335b187385ab5441f151aec4d6d9f6de3437f345 Mon Sep 17 00:00:00 2001 From: palakkhinvasara Date: Thu, 16 Jul 2026 19:53:26 +0530 Subject: [PATCH 2/2] changes --- Doc/library/functions.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 14e908df20aa05..891a2386e03882 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -610,9 +610,10 @@ are always available. They are listed here in alphabetical order. This function executes arbitrary code. Calling it with untrusted user-supplied input will lead to security vulnerabilities. -The *source* argument is parsed and evaluated as a Python expression -using the *globals* and *locals* mappings as global and local namespace -.If the *globals* dictionary is present and does not contain a value for the key ``__builtins__``, a + The *source* argument is parsed and evaluated as a Python expression + using the *globals* and *locals* mappings as global and local namespace. + If the *globals* dictionary is present and does not contain a value for the + key ``__builtins__``, a reference to the dictionary of the built-in module :mod:`builtins` is inserted under that key before *source* is parsed. Overriding ``__builtins__`` can be used to restrict or change the available