@@ -1031,6 +1031,14 @@ function to temporarily change the active context.
1031
1031
.. versionchanged :: 3.11
1032
1032
:meth: `localcontext ` now supports setting context attributes through the use of keyword arguments.
1033
1033
1034
+ .. function :: IEEEContext(bits)
1035
+
1036
+ Return a context object initialized to the proper values for one of the
1037
+ IEEE interchange formats. The argument must be a multiple of 32 and less
1038
+ than :const: `IEEE_CONTEXT_MAX_BITS `.
1039
+
1040
+ .. versionadded :: next
1041
+
1034
1042
New contexts can also be created using the :class: `Context ` constructor
1035
1043
described below. In addition, the module provides three pre-made contexts:
1036
1044
@@ -1552,18 +1560,19 @@ Constants
1552
1560
The constants in this section are only relevant for the C module. They
1553
1561
are also included in the pure Python version for compatibility.
1554
1562
1555
- +---------------------+---------------------+-------------------------------+
1556
- | | 32-bit | 64-bit |
1557
- +=====================+=====================+===============================+
1558
- | .. data:: MAX_PREC | ``425000000 `` | ``999999999999999999 `` |
1559
- +---------------------+---------------------+-------------------------------+
1560
- | .. data:: MAX_EMAX | ``425000000 `` | ``999999999999999999 `` |
1561
- +---------------------+---------------------+-------------------------------+
1562
- | .. data:: MIN_EMIN | ``-425000000 `` | ``-999999999999999999 `` |
1563
- +---------------------+---------------------+-------------------------------+
1564
- | .. data:: MIN_ETINY | ``-849999999 `` | ``-1999999999999999997 `` |
1565
- +---------------------+---------------------+-------------------------------+
1566
-
1563
+ +---------------------------------+---------------------+-------------------------------+
1564
+ | | 32-bit | 64-bit |
1565
+ +=================================+=====================+===============================+
1566
+ | .. data:: MAX_PREC | ``425000000 `` | ``999999999999999999 `` |
1567
+ +---------------------------------+---------------------+-------------------------------+
1568
+ | .. data:: MAX_EMAX | ``425000000 `` | ``999999999999999999 `` |
1569
+ +---------------------------------+---------------------+-------------------------------+
1570
+ | .. data:: MIN_EMIN | ``-425000000 `` | ``-999999999999999999 `` |
1571
+ +---------------------------------+---------------------+-------------------------------+
1572
+ | .. data:: MIN_ETINY | ``-849999999 `` | ``-1999999999999999997 `` |
1573
+ +---------------------------------+---------------------+-------------------------------+
1574
+ | .. data:: IEEE_CONTEXT_MAX_BITS | ``256 `` | ``512 `` |
1575
+ +---------------------------------+---------------------+-------------------------------+
1567
1576
1568
1577
.. data :: HAVE_THREADS
1569
1578
0 commit comments