Correct a couple of unbalanced parenthesis. (GH-10779)

This commit is contained in:
Andre Delfino 2018-12-05 16:45:30 -03:00 committed by Serhiy Storchaka
parent 1ce853f377
commit 55f41e45b4
11 changed files with 15 additions and 15 deletions

View file

@ -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