diff options
author | Stefan Krah <skrah@bytereef.org> | 2020-02-29 18:43:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-29 18:43:42 (GMT) |
commit | 815280eb160af637e1347213659f9236adf78f80 (patch) | |
tree | ecb6e85f7e8cec204316d3bfb82289a3724a173d /Doc | |
parent | 0aeab5c4381f0cc11479362af2533b3a391312ac (diff) | |
download | cpython-815280eb160af637e1347213659f9236adf78f80.zip cpython-815280eb160af637e1347213659f9236adf78f80.tar.gz cpython-815280eb160af637e1347213659f9236adf78f80.tar.bz2 |
bpo-39794: Add --without-decimal-contextvar (#18702)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/decimal.rst | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst index 4e640cc..9e31781 100644 --- a/Doc/library/decimal.rst +++ b/Doc/library/decimal.rst @@ -1475,9 +1475,18 @@ are also included in the pure Python version for compatibility. .. data:: HAVE_THREADS - The default value is ``True``. If Python is compiled without threads, the - C version automatically disables the expensive thread local context - machinery. In this case, the value is ``False``. + The value is ``True``. Deprecated, because Python now always has threads. + +.. deprecated:: 3.9 + +.. data:: HAVE_CONTEXTVAR + + The default value is ``True``. If Python is compiled ``--without-decimal-contextvar``, + 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. + +.. versionadded:: 3.9 + Rounding modes -------------- |