Debian Codegraph @

mypyc/doc/bool_operations.rst

raw
1 .. _bool-ops:
2
3 Native boolean operations
4 =========================
5
6 Operations on ``bool`` values that are listed here have fast,
7 optimized implementations.
8
9 Construction
10 ------------
11
12 * ``True``
13 * ``False``
14 * ``bool(obj)``
15
16 Operators
17 ---------
18
19 * ``b1 and b2``
20 * ``b1 or b2``
21 * ``not b``
22
23 Functions
24 ---------
25
26 * ``any(expr for ... in ...)``
27 * ``all(expr for ... in ...)``