-
Notifications
You must be signed in to change notification settings - Fork 6
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
Private APIs used in Pyodide #79
Comments
The API was approved but not implemented: capi-workgroup/decisions#13 |
Some of these should have a public alternative.
Argument Clinic is private itself. But, if you run it with
There is now
You can use
Call |
I created python/cpython#124502 to add |
Py_HashBuffer() was added to Python 3.14: https://docs.python.org/dev/c-api/hash.html#c.Py_HashBuffer |
Here is the list of the private C APIs used by Pyodide. I tried to drop ones that have public equivalents on the main branch, but I may have accidentally kept some.
cc @vstinner
Argument parsing
Argument parsing for vectorcall, would be nice to have argument clinic variant
for these I guess?
Errors and tracebacks
Generators
Hashes
Numbers
PyNumber_Index. PyNumber_Index forces the return type to be exactly PyLong
rather than a subtype. We can handle subtypes so we use the underscore version.
Other data structures
Miscellaneous
iteration, could be replaced with
PyIter_Check
PyID functions
I could easily shim these; Pyodide is single threaded so they are nice.
The text was updated successfully, but these errors were encountered: