diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-26 15:32:16 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-26 15:32:16 (GMT) |
commit | 22dc4d5fa849d07d93c1f63d1a3e24058c4afab0 (patch) | |
tree | 843d24cd90fb34daad93b0f0efd9c0b5285e8e42 | |
parent | 1833ac37b5e173047c0b612879e6ca92f48cc4c0 (diff) | |
download | cpython-22dc4d5fa849d07d93c1f63d1a3e24058c4afab0.zip cpython-22dc4d5fa849d07d93c1f63d1a3e24058c4afab0.tar.gz cpython-22dc4d5fa849d07d93c1f63d1a3e24058c4afab0.tar.bz2 |
Issue #19794: Improved markup for True/False constants.
-rw-r--r-- | Doc/library/decimal.rst | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst index 903af6c..059ae7c 100644 --- a/Doc/library/decimal.rst +++ b/Doc/library/decimal.rst @@ -1183,52 +1183,52 @@ In addition to the three supplied contexts, new contexts can be created with the .. method:: is_canonical(x) - Returns True if *x* is canonical; otherwise returns False. + Returns ``True`` if *x* is canonical; otherwise returns ``False``. .. method:: is_finite(x) - Returns True if *x* is finite; otherwise returns False. + Returns ``True`` if *x* is finite; otherwise returns ``False``. .. method:: is_infinite(x) - Returns True if *x* is infinite; otherwise returns False. + Returns ``True`` if *x* is infinite; otherwise returns ``False``. .. method:: is_nan(x) - Returns True if *x* is a qNaN or sNaN; otherwise returns False. + Returns ``True`` if *x* is a qNaN or sNaN; otherwise returns ``False``. .. method:: is_normal(x) - Returns True if *x* is a normal number; otherwise returns False. + Returns ``True`` if *x* is a normal number; otherwise returns ``False``. .. method:: is_qnan(x) - Returns True if *x* is a quiet NaN; otherwise returns False. + Returns ``True`` if *x* is a quiet NaN; otherwise returns ``False``. .. method:: is_signed(x) - Returns True if *x* is negative; otherwise returns False. + Returns ``True`` if *x* is negative; otherwise returns ``False``. .. method:: is_snan(x) - Returns True if *x* is a signaling NaN; otherwise returns False. + Returns ``True`` if *x* is a signaling NaN; otherwise returns ``False``. .. method:: is_subnormal(x) - Returns True if *x* is subnormal; otherwise returns False. + Returns ``True`` if *x* is subnormal; otherwise returns ``False``. .. method:: is_zero(x) - Returns True if *x* is a zero; otherwise returns False. + Returns ``True`` if *x* is a zero; otherwise returns ``False``. .. method:: ln(x) @@ -1390,7 +1390,7 @@ In addition to the three supplied contexts, new contexts can be created with the .. method:: same_quantum(x, y) - Returns True if the two operands have the same exponent. + Returns ``True`` if the two operands have the same exponent. .. method:: scaleb (x, y) @@ -1452,9 +1452,9 @@ 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 + 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. + machinery. In this case, the value is ``False``. Rounding modes -------------- |