# HPy - 파이썬을 위한 더 나은 C API

> Clean Markdown view of GeekNews topic #4004. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=4004](https://news.hada.io/topic?id=4004)
- GeekNews Markdown: [https://news.hada.io/topic/4004.md](https://news.hada.io/topic/4004.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2021-04-03T10:55:57+09:00
- Updated: 2021-04-03T10:55:57+09:00
- Original source: [hpyproject.org](https://hpyproject.org/index.html)
- Points: 10
- Comments: 2

## Topic Body

- 파이썬을 C로 확장할수 있게 해주는 새로운 API

ㅤ→ #include <Python.h> 대신 <hpy.h>

ㅤ→ 표준 Python/C API 보다 훌륭한(최신의) API 구조

- CPython의 오버헤드 없음 : 기존 확장 수준의 속도

- PyPy / GraalPython보다 빠름

- Debug Mode 지원

- 유니버설 바이너리 : HPy Universal ABI용으로 만든 확장은 CPython/PyPy/GraalPython 등에서 수정없이 로드 가능

## Comments



### Comment 4778

- Author: corona10
- Created: 2021-04-04T11:36:48+09:00
- Points: 1

- PyPy / GraalPython보다 빠름

써드파티 라이브러리를 구현할 때 HPy를 사용하면 기존의 C API를 구현한 구현체보다

PyPy와 GraalPython에서 해당 라이브러리가 더 빠르게 작동한다는 뜻인데요.

약간 문장이 오해의 소지가 있을 것 같아 간단하게 코멘트하고 갑니다..

### Comment 4769

- Author: xguru
- Created: 2021-04-03T10:56:14+09:00
- Points: 1

HPy: a better C API for Python?

- https://lwn.net/SubscriberLink/851202/8981fa354a584aeb/
