hpy icon indicating copy to clipboard operation
hpy copied to clipboard

HPy: a better API for Python

Results 69 hpy issues
Sort by recently updated
recently updated
newest added

The motivating example is the NumPy API that is exposed to other Python extensions such that they can work with arrays natively/directly without a round-trip through Python code/abstractions. How the...

`pkg_resources` is deprecated. Replace `pkg_resources` with `importlib.resources`, which available on python>=3.10. https://setuptools.pypa.io/en/latest/pkg_resources.html ![image](https://github.com/hpyproject/hpy/assets/13553903/4e6aa67e-47ac-4661-b86f-71af6873cb34)

Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.3 to 3.1.4. Release notes Sourced from jinja2's releases. 3.1.4 This is the Jinja 3.1.4 security release, which fixes security issues and bugs but does not otherwise...

dependencies

Some Python compilers (for example Cython in pure Python mode and Pythran) use the priority to an extension when importing a module. When importing `foo`, if `foo.py` and `foo.so` exist,...

Numpy, Scipy and scikit-image now use the [Meson](https://mesonbuild.com/) build system through [Meson-python](https://github.com/mesonbuild/meson-python). It should be possible to use HPy with Meson so I guess there should be some HPy examples...

Issue https://github.com/hpyproject/hpy/issues/129 is about API design for this feature, but the user-facing part can be tackled separately. HPy should provide ABI to Python interpreters that would give them: - pointer...

Is there a reason for why there is no `hpy/__init__.py` file, turning hpy into a "namespace"? Apparently that triggers a bug in "setup.py install" that seems not to handle this...

Currently HPyType_Spec uses `HPyType_BuiltinShape` which is an `enum` and `long` in its typedef https://github.com/hpyproject/hpy/blob/f6114734b4a5d03cfb9d24d3e8c71f77e8803881/hpy/devel/include/hpy/hpytype.h#L102 https://github.com/hpyproject/hpy/blob/f6114734b4a5d03cfb9d24d3e8c71f77e8803881/hpy/devel/include/hpy/hpytype.h#L131 These are ambiguous since `enum` does not have to be `int` and `long` is 4...

I don't see tests for setting the `globals` field in `HPyModuleDef`, and the only reference I could find in the cpython backend is [here](https://github.com/hpyproject/hpy/blob/a5c70cd1c19304bb2a164ab3dd69ab46b1ed542a/hpy/devel/src/runtime/ctx_module.c#L116) for error checking. The NumPy port...

enhancement

Currently `HPyField_Store` has a void return value. On PyPy, the function can fail if the type has no `tp_traverse`.

API design