]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-137871: Clarify cmath.nan documentation by linking to math module (#137876)
authorAziz <azizbenothman76@gmail.com>
Tue, 14 Oct 2025 08:24:43 +0000 (10:24 +0200)
committerGitHub <noreply@github.com>
Tue, 14 Oct 2025 08:24:43 +0000 (11:24 +0300)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Doc/library/cmath.rst

index 26518a0458fd813c23e05efbc1a5b8e1ed5faf9f..b6d5dbee21dcd5ab2bf92469da0a4aa304d2c25e 100644 (file)
@@ -338,7 +338,7 @@ Constants
 .. data:: nan
 
    A floating-point "not a number" (NaN) value.  Equivalent to
-   ``float('nan')``.
+   ``float('nan')``. See also :data:`math.nan`.
 
    .. versionadded:: 3.6