From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 24 Apr 2025 22:11:18 +0000 (+0200) Subject: [3.13] Differentiate bitwise OR from the word "or" (GH-132890) (#132891) X-Git-Tag: v3.13.4~229 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=99539719242d23e1fdc1ec17ea969b0ec56560ff;p=thirdparty%2FPython%2Fcpython.git [3.13] Differentiate bitwise OR from the word "or" (GH-132890) (#132891) Differentiate bitwise OR from the word "or" (GH-132890) (cherry picked from commit 15ff60aff0ca28b23c89cb1c0fc8f1f8997ed035) Co-authored-by: Brett Cannon --- diff --git a/Doc/library/sys.monitoring.rst b/Doc/library/sys.monitoring.rst index d297bd86d1b7..d43b4742569d 100644 --- a/Doc/library/sys.monitoring.rst +++ b/Doc/library/sys.monitoring.rst @@ -154,7 +154,7 @@ More events may be added in the future. These events are attributes of the :mod:`!sys.monitoring.events` namespace. Each event is represented as a power-of-2 integer constant. -To define a set of events, simply bitwise or the individual events together. +To define a set of events, simply bitwise OR the individual events together. For example, to specify both :monitoring-event:`PY_RETURN` and :monitoring-event:`PY_START` events, use the expression ``PY_RETURN | PY_START``.