mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Correct a couple of unbalanced parenthesis. (GH-10779)
This commit is contained in:
parent
1ce853f377
commit
55f41e45b4
11 changed files with 15 additions and 15 deletions
|
@ -1639,7 +1639,7 @@ returned; otherwise, *y* is evaluated and the resulting value is returned.
|
|||
The expression ``x or y`` first evaluates *x*; if *x* is true, its value is
|
||||
returned; otherwise, *y* is evaluated and the resulting value is returned.
|
||||
|
||||
(Note that neither :keyword:`and` nor :keyword:`or` restrict the value and type
|
||||
Note that neither :keyword:`and` nor :keyword:`or` restrict the value and type
|
||||
they return to ``False`` and ``True``, but rather return the last evaluated
|
||||
argument. This is sometimes useful, e.g., if ``s`` is a string that should be
|
||||
replaced by a default value if it is empty, the expression ``s or 'foo'`` yields
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue