From c480e71f38cd91e6ad140e347d446475ae17b509 Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Sun, 29 Dec 2024 06:43:28 +0300 Subject: [PATCH 1/2] gh-128185: align Decimal docs with spec (case irrelevant for nan/inf's) --- Doc/library/decimal.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst index c9a3e448cad063..eb57fd366c5556 100644 --- a/Doc/library/decimal.rst +++ b/Doc/library/decimal.rst @@ -367,6 +367,8 @@ Decimal objects appears above. These include decimal digits from various other alphabets (for example, Arabic-Indic and Devanāgarī digits) along with the fullwidth digits ``'\uff10'`` through ``'\uff19'``. + The characters in the strings accepted for ``infinity`` and ``nan`` + may be in any case. If *value* is a :class:`tuple`, it should have three components, a sign (``0`` for positive or ``1`` for negative), a :class:`tuple` of From a8ccb46f4e654f6b033459efcaad2728dbfe1754 Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Wed, 29 Jan 2025 05:29:53 +0300 Subject: [PATCH 2/2] Update Doc/library/decimal.rst --- Doc/library/decimal.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst index eb57fd366c5556..1685925778d37e 100644 --- a/Doc/library/decimal.rst +++ b/Doc/library/decimal.rst @@ -367,8 +367,8 @@ Decimal objects appears above. These include decimal digits from various other alphabets (for example, Arabic-Indic and Devanāgarī digits) along with the fullwidth digits ``'\uff10'`` through ``'\uff19'``. - The characters in the strings accepted for ``infinity`` and ``nan`` - may be in any case. + Case is not significant, so, for example, ``inf``, ``Inf``, ``INFINITY``, + and ``iNfINity`` are all acceptable spellings for positive infinity. If *value* is a :class:`tuple`, it should have three components, a sign (``0`` for positive or ``1`` for negative), a :class:`tuple` of