23.07.21 11:20, Bartosz Golaszewski пише: > 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 think that it would be much easier to define it in Python, and then either import a Python module in your C code, or exec a Python code as a string. -- https://mail.python.org/mailman/listinfo/python-list