Python extension using a C library with one 'hello' function
rosuav at gmail.com
Tue Nov 4 15:57:11 CET 2014
On Tue, Nov 4, 2014 at 8:52 PM, Veek M <vek.m1234 at gmail.com> wrote:
> doesn't work.
> I have:
> hello.c which contains: int hello(void);
> To wrap that up, i have:
> hello.py -> _hello (c extension) -> pyhello.c -> method py_hello()
> People using this will do:
> python3.2>> import hello
> python3.2>> hello.hello()
> It doesn't compile/work.
> [details chomped]
Have you considered using Cython? It'll likely make your job a LOT easier.
More information about the Python-list