Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
7e1a9aac
Commit
7e1a9aac
authored
Jun 20, 2019
by
Jeroen Demeyer
Committed by
Inada Naoki
Jun 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-37151: remove _PyCFunction_FastCallDict (GH-14269)
parent
8713aa6d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
29 deletions
+5
-29
Include/methodobject.h
Include/methodobject.h
+0
-5
Objects/call.c
Objects/call.c
+0
-18
Python/ceval.c
Python/ceval.c
+4
-4
Tools/gdb/libpython.py
Tools/gdb/libpython.py
+1
-2
No files found.
Include/methodobject.h
View file @
7e1a9aac
...
...
@@ -42,11 +42,6 @@ PyAPI_FUNC(int) PyCFunction_GetFlags(PyObject *);
PyAPI_FUNC
(
PyObject
*
)
PyCFunction_Call
(
PyObject
*
,
PyObject
*
,
PyObject
*
);
#ifndef Py_LIMITED_API
PyAPI_FUNC
(
PyObject
*
)
_PyCFunction_FastCallDict
(
PyObject
*
func
,
PyObject
*
const
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwargs
);
PyAPI_FUNC
(
PyObject
*
)
_PyCFunction_Vectorcall
(
PyObject
*
func
,
PyObject
*
const
*
stack
,
size_t
nargsf
,
...
...
Objects/call.c
View file @
7e1a9aac
...
...
@@ -495,24 +495,6 @@ exit:
}
PyObject
*
_PyCFunction_FastCallDict
(
PyObject
*
func
,
PyObject
*
const
*
args
,
Py_ssize_t
nargs
,
PyObject
*
kwargs
)
{
PyObject
*
result
;
assert
(
func
!=
NULL
);
assert
(
PyCFunction_Check
(
func
));
result
=
_PyMethodDef_RawFastCallDict
(((
PyCFunctionObject
*
)
func
)
->
m_ml
,
PyCFunction_GET_SELF
(
func
),
args
,
nargs
,
kwargs
);
result
=
_Py_CheckFunctionResult
(
func
,
result
,
NULL
);
return
result
;
}
PyObject
*
_PyMethodDef_RawFastCallKeywords
(
PyMethodDef
*
method
,
PyObject
*
self
,
PyObject
*
const
*
args
,
Py_ssize_t
nargs
,
...
...
Python/ceval.c
View file @
7e1a9aac
...
...
@@ -5018,10 +5018,10 @@ do_call_core(PyThreadState *tstate, PyObject *func, PyObject *callargs, PyObject
return
NULL
;
}
C_TRACE
(
result
,
_Py
CFunction
_FastCallDict
(
func
,
&
_PyTuple_ITEMS
(
callargs
)[
1
],
nargs
-
1
,
kwdict
));
C_TRACE
(
result
,
_Py
Object
_FastCallDict
(
func
,
&
_PyTuple_ITEMS
(
callargs
)[
1
],
nargs
-
1
,
kwdict
));
Py_DECREF
(
func
);
return
result
;
}
...
...
Tools/gdb/libpython.py
View file @
7e1a9aac
...
...
@@ -1563,8 +1563,7 @@ class Frame(object):
if
not
caller
:
return
False
if
caller
in
(
'_PyCFunction_FastCallDict'
,
'_PyCFunction_Vectorcall'
,
if
caller
in
(
'_PyCFunction_Vectorcall'
,
'cfunction_call_varargs'
):
arg_name
=
'func'
# Within that frame:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment