Stepan Sindelar

Results 116 comments of Stepan Sindelar

One view at this is that the HPy helpers are just a convenience C library, sugar on top of the C API. In the case of C, the API and...

> Would HPy_AsAPI return the function pointer of the trampoline (i.e. my_api_function_trampoline in the above example)? If so, a macro like the suggested HPy_APIDef would certainly generate some kind of...

Packages from top4000 with string `"PyArrayObject"` in their sources: asammdf astropy Bottleneck cvxpy dedupe ecos fastcluster GDAL matplotlib numba numexpr numpy opencv osqp pandas pyerfa python scipy scs shap Theano...

Related discussion: https://discuss.python.org/t/changing-the-pycapsule-api-to-better-support-versions/54860

My main motivation for the original issue was that the ABI would be precisely specified including the bit width of all the arguments/return values/struct fields. Unfortunately, I don't remember exactly...

> When converting, we also have the problem that we need to raise an error if the conversion fails (e.g. in case of an overflow). Right, thinking about it: however...

One more thing to consider regarding NumPy port including its API. NumPy API exposes several global `PyObject*` variables, such as `PyArray_Type`. With `HPyGlobal` the conversion is straightforward (modulo the issue...

Update: - in the dev call on 1.12.2022 we decided to go on with merging this as-is, I will just polish the code and fix the CI failures - therefore:...

I would like to take back the call to just polish and merge this PR. I've read more on module state in CPython and I think we should figure out...