-
Notifications
You must be signed in to change notification settings - Fork 1
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
Remove broken PySequence_Fast() function from the limited C API #55
Comments
I support this. It is clear to me that they were not excluded from the limited C API due to oversight.
|
+1 for removing the macros; yes, they never worked in limited API (and since PEP 652 they were never “officially” part of limited API); moving them to The |
Ping @erlend-aasland. |
Thanks for voting. I close the issue.
At least, the function remains available in the stable ABI. |
The limited C API has the function
PySequence_Fast()
which should be used with these macros:PySequence_Fast_GET_SIZE()
PySequence_Fast_GET_ITEM()
PySequence_Fast_ITEMS()
Problem: none of these 3 macros work with the limited C API. The whole PySequence_Fast() API is broken in the limited C API.
Example:
PyList_GET_ITEM()
andPyTuple_GET_ITEM()
are not part of the limited C API, soPySequence_Fast_GET_ITEM()
cannot be used in the limited C API.I propose to remove
PySequence_Fast()
and these 3 macros from the limited C API, since they are incompatible and never worked with the limited C API.Vote:
The text was updated successfully, but these errors were encountered: