Get the latest tech news

HPy – A better C API for Python


What is HPy? HPy provides a new API for extending Python in C. In other words, you use #include <hpy.h> instead of #include <Python.h>. What are the advantages of HPy? Zero overhead on CPython: ex

HPy is designed to overcome some of its limitations, be more consistent, produce better quality extensions and to make it harder to introduce bugs. We feel that the HPy ABI is stable enough now that we can fulfill our backwards and forwards binary compatibility promises with the upcoming release, and that the API now covers enough use cases to migrate important packages (in particular, checkout our numpy port). piconumpy: as the name suggests, this is a minimal numpy-like module which defines a custom type (similar to ndarray but with many fewer features of course).

Get the Android app

Or read this on Hacker News

Read more on:

Photo of python

python

Photo of better c api

better c api

Photo of hpy

hpy

Related news:

News photo

What Can a Coffee Machine Teach You About Python's Functions?

News photo

Python 3.13 Sees Last Minute Delay Due To Performance Regression

News photo

Typewise (YC S22) Is Hiring a Senior AI Back End Engineer (Python, Europe)