Files
chat/venv/lib/python3.12/site-packages/mypyc/doc/bool_operations.rst
Andrew K. Choi ddce9f5125
All checks were successful
continuous-integration/drone/push Build is passing
Major fixes and new features
2025-09-25 15:51:48 +09:00

28 lines
373 B
ReStructuredText

.. _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 ...)``