10000 bpo-37337: Add _PyObject_CallMethodNoArgs() by jdemeyer · Pull Request #14267 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-37337: Add _PyObject_CallMethodNoArgs() #14267

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 8, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
bpo-37337: fixup
  • Loading branch information
jdemeyer committed Jul 8, 2019
commit 2b2da7992902353b9ec63afeef4a284be39207d6
6 changes: 2 additions & 4 deletions Include/cpython/abstract.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ PyAPI_FUNC(PyObject *) _PyObject_VectorcallMethod(
static inline PyObject *
_PyObject_CallMethodNoArgs(PyObject *self, PyObject *name)
{
PyObject *args[1] = {self};
return _PyObject_VectorcallMethod(name, args,
return _PyObject_VectorcallMethod(name, &self,
1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
}

Expand Down Expand Up @@ -201,8 +200,7 @@ _PyObject_VectorcallMethodId(
static inline PyObject *
_PyObject_CallMethodIdNoArgs(PyObject *self, _Py_Identifier *name)
{
PyObject *args[1] = {self};
return _PyObject_VectorcallMethodId(name, args,
return _PyObject_VectorcallMethodId(name, &self,
1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
}

Expand Down
0