Skip to content

Commit

Permalink
Drop checks for broken float subclasses (like for PyNumber_Long in 31…
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Nov 12, 2023
1 parent 0d95d57 commit 7b8adb4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Objects/abstract.c
Original file line number Diff line number Diff line change
Expand Up @@ -1737,11 +1737,6 @@ PyNumber_Float(PyObject *o)
}
return PyFloat_FromDouble(val);
}

/* A float subclass with nb_float == NULL */
if (PyFloat_Check(o)) {
return PyFloat_FromDouble(PyFloat_AS_DOUBLE(o));
}
return PyFloat_FromString(o);
}

Expand Down

0 comments on commit 7b8adb4

Please sign in to comment.