-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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:
PyTupleObjectorPyObject?NULL?vectorcall→vectorcallfuncI'm not sure this was settled.
tp_vectorcall_offsettypeuintptr_t(original)Py_ssize_t(matches type ofoffsetofand existing practice)ptrdiff_t(actual "difference of pointers" type)This is probalby pointless bikeshedding.
METH_VECTORCALLfunction typePyObject *(*call) (PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwname)vectorcallfunc(There is a discussion on what code is "trusted".)
PyCall_MakeVectorCallnamePyCall_MakeVectorcall(original)PyCall_VectorcallPyVectorcall_CallPyVectorcall_FunctionDo we need this one?
PyCall_MakeTpCallDo we need to add this one back?
PY_VECTORCALL_ARGUMENTS_OFFSETvs.PY_VECTORCALL_PREPENDPassing a dict to
PyObject_Vectorcall