summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2021-12-19 21:05:46 (GMT)
committerGitHub <noreply@github.com>2021-12-19 21:05:46 (GMT)
commit29ea68bd1dcf30842c2ed908a6d815bc1d90f484 (patch)
tree2b3d8b3bc3945241cf44d936374f746ef2974a3a /Include
parent2ef06d412531d1163dbc72877c88aedf3ed82a25 (diff)
downloadcpython-29ea68bd1dcf30842c2ed908a6d815bc1d90f484.zip
cpython-29ea68bd1dcf30842c2ed908a6d815bc1d90f484.tar.gz
cpython-29ea68bd1dcf30842c2ed908a6d815bc1d90f484.tar.bz2
Revert "bpo-46131: add fastpath for PyFloat_Check() (GH-30200)" (GH-30208)
This reverts commit 2ef06d412531d1163dbc72877c88aedf3ed82a25.
Diffstat (limited to 'Include')
-rw-r--r--Include/floatobject.h2
-rw-r--r--Include/object.h1
2 files changed, 0 insertions, 3 deletions
diff --git a/Include/floatobject.h b/Include/floatobject.h
index 51be745..3b6ca47 100644
--- a/Include/floatobject.h
+++ b/Include/floatobject.h
@@ -14,8 +14,6 @@ extern "C" {
PyAPI_DATA(PyTypeObject) PyFloat_Type;
#define PyFloat_Check(op) PyObject_TypeCheck(op, &PyFloat_Type)
-#define PyFloat_Check(op) \
- PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_FLOAT_SUBCLASS)
#define PyFloat_CheckExact(op) Py_IS_TYPE(op, &PyFloat_Type)
#ifdef Py_NAN
diff --git a/Include/object.h b/Include/object.h
index ee817a5..e5544e8 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -397,7 +397,6 @@ given type object has a specified feature.
#define _Py_TPFLAGS_MATCH_SELF (1UL << 22)
/* These flags are used to determine if a type is a subclass. */
-#define Py_TPFLAGS_FLOAT_SUBCLASS (1UL << 23)
#define Py_TPFLAGS_LONG_SUBCLASS (1UL << 24)
#define Py_TPFLAGS_LIST_SUBCLASS (1UL << 25)
#define Py_TPFLAGS_TUPLE_SUBCLASS (1UL << 26)