Skip to content

Commit a8e4a4e

Browse files
committed
stdc_iec_559 -> iec_60559
1 parent 5000849 commit a8e4a4e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Doc/library/math.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ Constants
848848

849849
The :mod:`math` module consists mostly of thin wrappers around the platform C
850850
math library functions. Behavior in exceptional cases follows Annex F of
851-
the C99 standard, if :attr:`sys.float_info.stdc_iec_559` is true.
851+
the C99 standard, if :attr:`sys.float_info.iec_60559` is true.
852852
The current implementation will raise
853853
:exc:`ValueError` for invalid operations like ``sqrt(-1.0)`` or ``log(0.0)``
854854
(where C99 Annex F recommends signaling invalid operation or divide-by-zero),

Doc/library/sys.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ always available. Unless explicitly noted otherwise, all variables are read-only
771771
All other values for :c:macro:`!FLT_ROUNDS` characterize
772772
implementation-defined rounding behavior.
773773

774-
* - .. attribute:: float_info.stdc_iec_559
774+
* - .. attribute:: float_info.iec_60559
775775
- :c:macro:`!__STDC_IEC_559__`
776776
- A boolean, indicating support the IEC 60559 floating-point standard.
777777
If true, the :class:`float` type characteristics and behavior matches
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Add a boolean flag, indicating support the IEC 60559 floating-point standard
2-
(the Annex F of C99). Patch by Sergey B Kirpichev.
2+
(as specified by the Annex F of C99). Patch by Sergey B Kirpichev.

Objects/floatobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ static PyStructSequence_Field floatinfo_fields[] = {
6868
{"radix", "FLT_RADIX -- radix of exponent"},
6969
{"rounds", "FLT_ROUNDS -- rounding mode used for arithmetic "
7070
"operations"},
71-
{"stdc_iec_559", "test if implementation supports the IEC 60559 "
72-
"floating-point standard"},
71+
{"iec_60559", "test if implementation supports the IEC 60559 "
72+
"floating-point standard"},
7373
{0}
7474
};
7575

0 commit comments

Comments
 (0)