Skip to content
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

gh-104469 Convert_testcapi/vectorcall.c to use AC #106557

Merged
merged 6 commits into from
Jul 9, 2023
Merged

Conversation

littlebutt
Copy link
Contributor

@bedevere-bot
Copy link

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@cpython-cla-bot
Copy link

cpython-cla-bot bot commented Jul 9, 2023

All commit authors signed the Contributor License Agreement.
CLA signed

@corona10 corona10 self-requested a review July 9, 2023 03:13
Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that we need to convert test_ prefixed functions. They are executed as tests directly.

@corona10
Copy link
Member

corona10 commented Jul 9, 2023

I don't think that we need to convert test_ prefixed functions. They are executed as tests directly.

Well, I am okay with it. We already did.
#104720

Copy link
Member

@corona10 corona10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First thing, method names are wrong.
Please change method names and then executing the make clinic

@@ -25,18 +29,23 @@ fastcall_args(PyObject *args, PyObject ***stack, Py_ssize_t *nargs)
return 0;
}

/*[clinic input]
_testcapi.test_pyobject_fastcalldict
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
_testcapi.test_pyobject_fastcalldict
_testcapi.pyobject_fastcalldict

@@ -52,17 +61,23 @@ test_pyobject_fastcalldict(PyObject *self, PyObject *args)
return PyObject_VectorcallDict(func, stack, nargs, kwargs);
}

/*[clinic input]
_testcapi.test_pyobject_vectorcall
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
_testcapi.test_pyobject_vectorcall
_testcapi.pyvectorcall_call

_testcapi.test_pyobject_vectorcall
func: object
func_args: object
kwnames: object = NULL
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
kwnames: object = NULL
kwnames: object = None

@@ -103,17 +118,19 @@ function_setvectorcall(PyObject *self, PyObject *func)
Py_RETURN_NONE;
}

/*[clinic input]
_testcapi.test_pyvectorcall_call
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
_testcapi.test_pyvectorcall_call
_testcapi.pyvectorcall_call

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@bedevere-bot
Copy link

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@littlebutt
Copy link
Contributor Author

@corona10 Thank you for your suggestions and I fixed these method names. But the complaints still exist because of missing arguments in test cases.

@corona10
Copy link
Member

corona10 commented Jul 9, 2023

@corona10 Thank you for your suggestions and I fixed these method names. But the complaints still exist because of missing arguments in test cases.

According to CI, it looks not, did you rebuild the code?

@littlebutt
Copy link
Contributor Author

@corona10 Thank you for your suggestions and I fixed these method names. But the complaints still exist because of missing arguments in test cases.

According to CI, it looks not, did you rebuild the code?

No, I didn't. I just ran rt.bat -q test_capi directly after generating .c.h file😂. Thank you for help and I learnt a lot.

Copy link
Member

@corona10 corona10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@corona10 corona10 merged commit d137c2c into python:main Jul 9, 2023
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants