fredbasset1...@gmail.com wrote:
> I'm writing a C extension for Python, is it possible to define
> constants in the C code and have them visible from Python?

Have you looked at Cython? It allows you to define e.g. enums as "public"
and will generate the rest for you.

http://cython.org

Stefan
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to