ID EN
Decimal

HAVE_CONTEXTVAR

Python 3.11

The default value is True. If Python is configured using the --without-decimal-contextvar option, the C version uses a thread-local rather than a coroutine-local context and the value is False. This is slightly faster in some nested context scenarios.

Syntax

PYTHON
decimal.HAVE_CONTEXTVAR