diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2021-12-19 21:05:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-19 21:05:46 (GMT) |
commit | 29ea68bd1dcf30842c2ed908a6d815bc1d90f484 (patch) | |
tree | 2b3d8b3bc3945241cf44d936374f746ef2974a3a /Tools/gdb/libpython.py | |
parent | 2ef06d412531d1163dbc72877c88aedf3ed82a25 (diff) | |
download | cpython-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 'Tools/gdb/libpython.py')
-rwxr-xr-x | Tools/gdb/libpython.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py index 41d1c3c..a0a95e3 100755 --- a/Tools/gdb/libpython.py +++ b/Tools/gdb/libpython.py @@ -85,7 +85,6 @@ _is_pep393 = None Py_TPFLAGS_MANAGED_DICT = (1 << 4) Py_TPFLAGS_HEAPTYPE = (1 << 9) -Py_TPFLAGS_FLOAT_SUBCLASS = (1 << 23) Py_TPFLAGS_LONG_SUBCLASS = (1 << 24) Py_TPFLAGS_LIST_SUBCLASS = (1 << 25) Py_TPFLAGS_TUPLE_SUBCLASS = (1 << 26) @@ -380,8 +379,6 @@ class PyObjectPtr(object): if tp_flags & Py_TPFLAGS_HEAPTYPE: return HeapTypeObjectPtr - if tp_flags & Py_TPFLAGS_FLOAT_SUBCLASS: - return PyFloatObjectPtr if tp_flags & Py_TPFLAGS_LONG_SUBCLASS: return PyLongObjectPtr if tp_flags & Py_TPFLAGS_LIST_SUBCLASS: @@ -913,16 +910,6 @@ class PyNoneStructPtr(PyObjectPtr): def proxyval(self, visited): return None -class PyFloatObjectPtr(PyObjectPtr): - _typename = 'PyFloatObject' - - def proxyval(self, visited): - return self.field('ob_fval') - - def write_repr(self, out, visited): - proxy = self.proxyval(visited) - out.write("%s" % proxy) - class PyFrameObjectPtr(PyObjectPtr): _typename = 'PyFrameObject' |