HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/anaconda3/Lib/site-packages/mypyc/doc/bool_operations.rst
.. _bool-ops:

Native boolean operations
=========================

Operations on ``bool`` values that are listed here have fast,
optimized implementations.

Construction
------------

* ``True``
* ``False``
* ``bool(obj)``

Operators
---------

* ``b1 and b2``
* ``b1 or b2``
* ``not b``

Functions
---------

* ``any(expr for ... in ...)``
* ``all(expr for ... in ...)``