mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Revert "bpo-46131: add fastpath for PyFloat_Check() (GH-30200)" (GH-30208)
This reverts commit 2ef06d4125.
This commit is contained in:
parent
2ef06d4125
commit
29ea68bd1d
7 changed files with 0 additions and 23 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue