On Wed, Jul 11, 2012 at 6:09 PM, Armin Rigo <
ar...@tunes.org> wrote:
> Hi Hakan,
>
> On Wed, Jul 11, 2012 at 5:00 PM, Hakan Ardo <
ha...@debian.org> wrote:
>> I've been playing with cffi to find a framework for doing mixed C and
>> python development. The idea is to assume the common practice of
>> having xxx.h declare what's implemented in xxx.c and to strengthen the
>> #include<xxx.h> statement to also mean that xxx.c needs to be linked
>> in. Then I mark some part of xxx.h as a suitable cdef and allow python
>> to import C symbols from xxx by dynamically recompiling it when
>> needed. Here is a somewhat hacky prototype:
>
> It may be useful but it all feels like a collection of hacks. I'm
> very unlikely to accept these patches into the "main" cffi :-) But
> feel free to discuss it more on the cffi mailing list at
>
pytho...@googlegroups.com .
Yes I suppose it is a collection of hacks at present, but I think it
can be formalized. Keeping it as a separate module using cffi might
make sens though.
--
Håkan Ardö