gh-156111: Clarify wording in glossary entry "expression" (#156198)
picnixz <[email protected]>
| Newsgroups | gmane.comp.python.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://github.com/python/cpython/commit/6f42535b333b6d2d56ba2b27e436c37e8ae63a02 commit: 6f42535b333b6d2d56ba2b27e436c37e8ae63a02 branch: main author: Aniket <[email protected]> committer: picnixz <[email protected]> date: 2026-08-22T18:11:52Z summary: gh-156111: Clarify wording in glossary entry "expression" (#156198) files: M Doc/glossary.rst diff --git a/Doc/glossary.rst b/Doc/glossary.rst index bb00a4f02f0efd..4017f1e37f748e 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -509,7 +509,7 @@ 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 + 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. _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]