Closed
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Description
Documentation
The sentence:
"In contrast to many other languages, not all language constructs are expressions."
may be misleading. Many mainstream languages (for example C, C++, Java, Go) also distinguish between expressions and statements.
I believe the intent is to contrast Python with expression-oriented languages where more language constructs have values (for example Rust or Scala). Consider changing "many other languages" to something more precise, such as "some other languages" or "some expression-oriented languages".
Linked PRs
- gh-156111: Clarify wording in glossary entry "expression" #156198
- [3.15] gh-156111: Clarify wording in glossary entry "expression" (GH-156198) #156236
- [3.14] gh-156111: Clarify wording in glossary entry "expression" (GH-156198) #156237
- [3.13] gh-156111: Clarify wording in glossary entry "expression" (GH-156198) #156238
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Projects
- StatusShow more project fieldsTodo
Activity
Aniketsy commentedon Aug 21, 2026
yes, i partially agree here
how about keeping only
Not all language constructs are expressions.and removing thisIn contrast to many other languages, i think this is more simple fix .dluschan commentedon Aug 21, 2026
Yes, I agree. Removing that part is a simpler and more precise fix.
picnixz commentedon Aug 21, 2026
I think it was true when this document was written, and when Lisp-based languages and functional programming (Haskell and others) were more common. Nowadays, only Rust/Scala is a popular statement-less language (it's not a fully expression-language like Lisp because there are some special treatments) [strictly speaking Scala is expression-less because "statements" return a Unit)
gh-156111: Clarify wording in glossary entry "expression" (#156198)
[3.13] gh-156111: Clarify wording in glossary entry "expression" (GH-…
[3.14] gh-156111: Clarify wording in glossary entry "expression" (GH-…
[3.15] gh-156111: Clarify wording in glossary entry "expression" (GH-…