From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 21 Feb 2023 10:45:49 +0000 (-0800) Subject: gh-100556: Improve clarity of `or` docs (GH-100589) X-Git-Tag: v3.11.3~129 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a94f3ad10b8846d435cadd7c96d9b9e32dcc11e4;p=thirdparty%2FPython%2Fcpython.git gh-100556: Improve clarity of `or` docs (GH-100589) (cherry picked from commit b40dd71241f092d90c192ebff5d58cbd7e84dc52) Co-authored-by: ram vikram singh Co-authored-by: Hugo van Kemenade --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 1563c4dff138..608e15453be8 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -84,8 +84,8 @@ These are the Boolean operations, ordered by ascending priority: +-------------+---------------------------------+-------+ | Operation | Result | Notes | +=============+=================================+=======+ -| ``x or y`` | if *x* is false, then *y*, else | \(1) | -| | *x* | | +| ``x or y`` | if *x* is true, then *x*, else | \(1) | +| | *y* | | +-------------+---------------------------------+-------+ | ``x and y`` | if *x* is false, then *x*, else | \(2) | | | *y* | |