diff options
author | Andre Delfino <adelfino@gmail.com> | 2018-12-05 19:45:30 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-12-05 19:45:30 (GMT) |
commit | 55f41e45b4318cbe19209f5144641344d0049fb8 (patch) | |
tree | ec0b6422a595cf8cfbae67d0525f6644b9314833 /Doc/reference | |
parent | 1ce853f37783575e2b3aaa159ddcebc8660830ef (diff) | |
download | cpython-55f41e45b4318cbe19209f5144641344d0049fb8.zip cpython-55f41e45b4318cbe19209f5144641344d0049fb8.tar.gz cpython-55f41e45b4318cbe19209f5144641344d0049fb8.tar.bz2 |
Correct a couple of unbalanced parenthesis. (GH-10779)
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/expressions.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index fb27857..571e6fa 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -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 |