Help creating extension for C function

Java and Swing codecraig at gmail.com
Tue Oct 11 12:51:00 EDT 2005


So is "module.c" a new C file or do I add it to my existing, myapp.c?


Fredrik Lundh wrote:
> >    seq = PySequence_Fast(data, "expected a sequence");
> >    if (!seq)
> >        return NULL;
>
> here's some more information on the PySequence_Fast API:
> 
>     http://www.effbot.org/zone/python-capi-sequences.htm
> 
> </F>




More information about the Python-list mailing list