Help creating extension for C function

Java and Swing codecraig at gmail.com
Tue Oct 11 13:07:57 EDT 2005


also, I noticed you did python build-ext ....does that mean for any
computer I want to run myapp on, I need to build the extension on it as
well?  Or can I build it once and just copy the files to another
computer that has python already installed?  If I just copy files,
which files and where would they go?

Thanks!

Java and Swing wrote:
> 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