summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/conversion.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/c-api/conversion.rst')
-rw-r--r--Doc/c-api/conversion.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/conversion.rst b/Doc/c-api/conversion.rst
index 4aaf3905..c92ef4c 100644
--- a/Doc/c-api/conversion.rst
+++ b/Doc/c-api/conversion.rst
@@ -105,7 +105,7 @@ The following functions provide locale-independent string to number conversions.
If ``s`` represents a value that is too large to store in a float
(for example, ``"1e500"`` is such a string on many platforms) then
- if ``overflow_exception`` is ``NULL`` return ``Py_HUGE_VAL`` (with
+ if ``overflow_exception`` is ``NULL`` return ``Py_INFINITY`` (with
an appropriate sign) and don't set any exception. Otherwise,
``overflow_exception`` must point to a Python exception object;
raise that exception and return ``-1.0``. In both cases, set