C Python extension to export an Function

dieter dieter at handshake.de
Fri Sep 2 02:52:21 EDT 2016


Ganesh Pal <ganesh1pal at gmail.com> writes:
> ...
> Thanks stefan and  Gollwitzer  , good to know there are many ways to do this
> i.e via cython or SWIG   but  the C/Python API
> <https://docs.python.org/2/c-api/> is probably the most widely used method
> - not for it’s simplicity but for the fact that you can manipulate python
> objects in your C code.
>
> I want to use C/Python API <https://docs.python.org/2/c-api/>

I have used both Python's C API (to implement "dm.incrementalsearch")
and (later) "cython" (to implement "dm.xmlsec.binding"). I can tell
you from personal experience
that the "cython" approach is much easier (and even more straight forward).




More information about the Python-list mailing list