On Fri, Jul 23, 2021 at 1:20 AM Bartosz Golaszewski <b...@bgdev.pl> wrote:

> Hi!
>
> I'm working on a Python C extension and I would like to expose a
> custom enum (as in: a class inheriting from enum.Enum) that would be
> entirely defined in C.
>

I'm probably missing something obvious, but why would you write new code in
C when you can just use Cython?  Cython is a lot easier, and quite fast,
and should (eventually?) allow compiling to HPY instead of just "the" C
extension module interface.

https://news.ycombinator.com/item?id=26627683
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to