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 code in `test_htype.py` has [tests like](https://github.com/hpyproject/hpy/blob/f6114734b4a5d03cfb9d24d3e8c71f77e8803881/test/test_hpytype.py#L282) ``` def test_simple_type(self): mod = self.make_module(""" static HPyType_Spec Dummy_spec = { .name = "mytest.Dummy", .itemsize = 0, .flags = HPy_TPFLAGS_DEFAULT | HPy_TPFLAGS_BASETYPE, @DEFAULT_SHAPE...

[Bindgen](https://rust-lang.github.io/rust-bindgen/introduction.html) can already generate rust bindings automatically for us. Here's the [output](https://gist.github.com/thedrow/b754ef37ed015135e20181446102cf50) on Mac OSX. In order to properly build the Rust library, we will need to link it to...

This would simplify building projects that have migrated to HPy. This task would be something like - find the places in the current code that need more support from setuptools...

We had some discussion in [October 2023's dev call](https://github.com/hpyproject/hpy/wiki/dev-call-20231005) about the way how we provide the HPy helpers. @steve-s brought up that it may be problematic to propagate updates/fixes for...

API design

This was one of the topics at the last sprint that we did not have enough time to pick up. It seems that there was no GitHub issue left for...

good first issue

Possible implementation: store thread ID in the debug context just before calling extension function, and check it on every API call. Caveats: * is there some portable way to get...

good first issue

I think that issue https://github.com/capi-workgroup/problems/issues/51 raises (pun intended) good points about APIs such as: * PyDict_GetItem and PyDict_GetItemString * PyMapping_HasKey and PyMapping_HasKeyString * PyObject_HasAttr and PyObject_HasAttrString * PySys_GetObject For the...

good first issue
API design

(This came up from a short discussion with Steve Dower at EuroPython) One of the things suggested in https://github.com/hpyproject/hpy/issues/421 is to upstream HPy support to CPython. Note that this whole...

My use case is *not* module development, but having a (currently) CPython interpreter embedded in the application. I'm using HPy so that in distant future a different Python implementation could...