From: ram vikram singh Date: Tue, 21 Feb 2023 10:34:56 +0000 (+0530) Subject: gh-100556: Improve clarity of `or` docs (#100589) X-Git-Tag: v3.12.0a6~109 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b40dd71241f092d90c192ebff5d58cbd7e84dc52;p=thirdparty%2FPython%2Fcpython.git gh-100556: Improve clarity of `or` docs (#100589) Co-authored-by: Hugo van Kemenade --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 98bda6ded30f..41947d66c151 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* | |