-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
PEP 590: Base update #1035
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
PEP 590: Base update #1035
Conversation
I checked with Mark on this. @jdemeyer, can we merge this and move forward with the individual points? |
One typo, otherwise LGTM. |
OK |
You mention bringing back |
The PR description lists the unresolved issues, not what this PR does. In retrospect, that's quite confusing. Sorry! I'll kick off discussions on these issues on python-dev. |
The discussion on GH-1028 got out of hand.
This PR attempts to collect the "uncontroversial" changes, and also to collect the unresolved issues.
If there's something here you don't agree with, point it out.
I'll add it to the following list of things to hash out (and, if feasible, revert the change here).
Please don't discuss any of these in this PR.
cc @markshannon @jdemeyer
The vectorcall function's kwname argument:
PyTupleObject
orPyObject
?NULL
?vectorcall
→vectorcallfunc
I'm not sure this was settled.
tp_vectorcall_offset
typeuintptr_t
(original)Py_ssize_t
(matches type ofoffsetof
and existing practice)ptrdiff_t
(actual "difference of pointers" type)This is probalby pointless bikeshedding.
METH_VECTORCALL
function typePyObject *(*call) (PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwname)
vectorcallfunc
(There is a discussion on what code is "trusted".)
PyCall_MakeVectorCall
namePyCall_MakeVectorcall
(original)PyCall_Vectorcall
PyVectorcall_Call
PyVectorcall_Function
Do we need this one?
PyCall_MakeTpCall
Do we need to add this one back?
PY_VECTORCALL_ARGUMENTS_OFFSET
vs.PY_VECTORCALL_PREPEND
Passing a dict to
PyObject_Vectorcall