From 88d7142ecc1563d014466d3eb076bbf7559e16c6 Mon Sep 17 00:00:00 2001 From: Aniket Singh Yadav Date: Fri, 21 Aug 2026 16:38:16 +0000 Subject: [PATCH 1/2] Clarify wording in glossary entry expression --- Doc/glossary.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Doc/glossary.rst b/Doc/glossary.rst index bb00a4f02f0efd..36a4d5c47dede0 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -509,10 +509,9 @@ Glossary A piece of syntax which can be evaluated to some value. In other words, an expression is an accumulation of expression elements like literals, names, attribute access, operators or function calls which all return a - value. In contrast to many other languages, not all language constructs - are expressions. There are also :term:`statement`\s which cannot be used - as expressions, such as :keyword:`while`. Assignments are also statements, - not expressions. + value. Not all language constructs are expressions. There are also + :term:`statement`\s which cannot be used as expressions, such as + :keyword:`while`. Assignments are also statements, not expressions. extension module A module written in C or C++, using Python's C API to interact with the From ed3a849f53876c587f086103f66933741b100772 Mon Sep 17 00:00:00 2001 From: Aniket <148300120+Aniketsy@users.noreply.github.com> Date: Sat, 22 Aug 2026 23:32:16 +0530 Subject: [PATCH 2/2] Reduce diff by changing one line --- Doc/glossary.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 36a4d5c47dede0..4017f1e37f748e 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -509,9 +509,10 @@ Glossary A piece of syntax which can be evaluated to some value. In other words, an expression is an accumulation of expression elements like literals, names, attribute access, operators or function calls which all return a - value. Not all language constructs are expressions. There are also - :term:`statement`\s which cannot be used as expressions, such as - :keyword:`while`. Assignments are also statements, not expressions. + value. Not all language constructs + are expressions. There are also :term:`statement`\s which cannot be used + as expressions, such as :keyword:`while`. Assignments are also statements, + not expressions. extension module A module written in C or C++, using Python's C API to interact with the