summaryrefslogtreecommitdiffstats
path: root/Objects
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 /Objects
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 'Objects')
-rw-r--r--Objects/floatobject.c1
-rw-r--r--Objects/typeobject.c3
2 files changed, 0 insertions, 4 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index 37434f3..f8620d6 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -1959,7 +1959,6 @@ PyTypeObject PyFloat_Type = {
0, /* tp_setattro */
0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE |
- Py_TPFLAGS_FLOAT_SUBCLASS |
_Py_TPFLAGS_MATCH_SELF, /* tp_flags */
float_new__doc__, /* tp_doc */
0, /* tp_traverse */
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 8bd9280..af35180 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -5783,9 +5783,6 @@ inherit_special(PyTypeObject *type, PyTypeObject *base)
else if (PyType_IsSubtype(base, &PyDict_Type)) {
type->tp_flags |= Py_TPFLAGS_DICT_SUBCLASS;
}
- else if (PyType_IsSubtype(base, &PyFloat_Type)) {
- type->tp_flags |= Py_TPFLAGS_FLOAT_SUBCLASS;
- }
if (PyType_HasFeature(base, _Py_TPFLAGS_MATCH_SELF)) {
type->tp_flags |= _Py_TPFLAGS_MATCH_SELF;
}