summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-02-25 00:32:57 (GMT)
committerGitHub <noreply@github.com>2022-02-25 00:32:57 (GMT)
commit1b2611eb0283055835e5df632a7a735db8c894b8 (patch)
treee9333a50ad80b2e1f622d8baf83273c68c085bb3 /Python
parent5f8b5e2f2150d2223ff9e286bd146de92ff16865 (diff)
downloadcpython-1b2611eb0283055835e5df632a7a735db8c894b8.zip
cpython-1b2611eb0283055835e5df632a7a735db8c894b8.tar.gz
cpython-1b2611eb0283055835e5df632a7a735db8c894b8.tar.bz2
bpo-46656: Remove Py_NO_NAN macro (GH-31160)
Building Python now requires support for floating point Not-a-Number (NaN): remove the Py_NO_NAN macro.
Diffstat (limited to 'Python')
-rw-r--r--Python/pystrtod.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Python/pystrtod.c b/Python/pystrtod.c
index 7469d62..1b27f0a 100644
--- a/Python/pystrtod.c
+++ b/Python/pystrtod.c
@@ -82,12 +82,10 @@ _Py_parse_inf_or_nan(const char *p, char **endptr)
s += 5;
retval = negate ? -Py_HUGE_VAL : Py_HUGE_VAL;
}
-#ifdef Py_NAN
else if (case_insensitive_match(s, "nan")) {
s += 3;
retval = negate ? -Py_NAN : Py_NAN;
}
-#endif
else {
s = p;
retval = -1.0;