]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-128185: Align Decimal docs with spec (case irrelevant for nan/inf) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 24 Apr 2025 14:09:03 +0000 (16:09 +0200)
committerGitHub <noreply@github.com>
Thu, 24 Apr 2025 14:09:03 +0000 (14:09 +0000)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Doc/library/decimal.rst

index 2332b6fc62709df4ebb2b4be5c9413ae3841aa28..390e7717647cb3d7a67f82d7312a6a426f0f33bc 100644 (file)
@@ -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'``.
+   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