summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorINADA Naoki <songofacandy@gmail.com>2017-02-02 22:43:03 (GMT)
committerINADA Naoki <songofacandy@gmail.com>2017-02-02 22:43:03 (GMT)
commit5566bbb8d563646d83e8172410fa0c085e8233b1 (patch)
treecb8ca83c2b1a6eb01a6b51258532b4fccf548b6d /Tools
parent144fff8b900f9d452402a8e47ff79e88e4916d28 (diff)
downloadcpython-5566bbb8d563646d83e8172410fa0c085e8233b1.zip
cpython-5566bbb8d563646d83e8172410fa0c085e8233b1.tar.gz
cpython-5566bbb8d563646d83e8172410fa0c085e8233b1.tar.bz2
Issue #29263: LOAD_METHOD support for C methods
Calling builtin method is at most 10% faster.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/gdb/libpython.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py
index cca9741..4f45256 100755
--- a/Tools/gdb/libpython.py
+++ b/Tools/gdb/libpython.py
@@ -1540,10 +1540,7 @@ class Frame(object):
if caller in ('_PyCFunction_FastCallDict',
'_PyCFunction_FastCallKeywords'):
- if caller == '_PyCFunction_FastCallKeywords':
- arg_name = 'func_obj'
- else:
- arg_name = 'func'
+ arg_name = 'func'
# Within that frame:
# "func" is the local containing the PyObject* of the
# PyCFunctionObject instance