[Pyrex] Constructive Help....

Lenard Lindstrom len-l at telus.net
Fri Oct 1 22:05:51 CEST 2004


Learn enough C to understand the public interface of the C module being wrapped.
That is what you declare in a pyrex cdef extern and used elsewhere in the
pyrex module.

On Fri, 1 Oct 2004 12:50:50 +1000 Christopher Armstrong <radeex at gmail.com> wrote:

> Personally, I understand the concepts of C but can't seem to write C
> code straight up (I've probably written far less than 1000 serious
> lines in my life). When I started hacking on soya3d the pyrex stuff
> was infinitely easier to deal with. So knowing how to write C code
> reasonably isn't quite necessary, but understanding pointers and
> structs and arrays and compilers, etc. probably is.
> 
> On Fri, 1 Oct 2004 11:11:02 +0100, Simon Burton <simon at arrowtheory.com> wrote:
> > 
> > A fantastic book for learning C (actually it's a second book):
> > "Expert C Programming", by Peter van der Linden (the sun compiler guy)
> > Very funny. Who would have thought such a book could be funny?
> > 
> > I just think you are in for a difficult time hacking pyrex if you don't know how to bang
> > C code together. shrug. Maybe I'm wrong.
> > 
> > ciao,
> > 
> > Simon.
> > 
> > On Fri, 1 Oct 2004 08:52:45 +1000
> > "Grant McDonald" <gmcdonald at infocomp.com> wrote:
> > 
> > > Dear Mailing List,
> > >
> > > I must say I find Lenard's response to the question of function pointers to
> > > be exceptionally helpful and to the point. I am not wrong in thinking the
> > > idea of this mailing list is to _help_ people use Pyrex, including smoothing
> > > the transition from the Pythonic world for those who have little experience
> > > in C.
> > >

Lenard Lindstrom
<len-l at telus.net>









More information about the Pyrex mailing list