Re: [Tutor] combining c and python

2012-09-18 Thread wesley chun
another option that no one has mentioned yet is the use of 'ctypes' with existing C libraries: http://docs.python.org/library/ctypes cheers, -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "A computer never does what you want... only what you tell it." +wesley chun : wesc

Re: [Tutor] combining c and python

2012-09-17 Thread Oscar Benjamin
On 2012-09-17, Walter Prins wrote: > Hi Chris, > > On 17 September 2012 18:43, Chris Fuller > wrote: >> To run C alongside Python, you need to use the API. >> >> You can interface Cython with straight C, of course, but not in a way that >> will work with the standard interpreter. > > Just to be c

Re: [Tutor] combining c and python

2012-09-17 Thread Walter Prins
Hi Chris, On 17 September 2012 18:43, Chris Fuller wrote: > To run C alongside Python, you need to use the API. > > You can interface Cython with straight C, of course, but not in a way that > will work with the standard interpreter. Just to be clear, one of the main reasons for Cython's existen

Re: [Tutor] combining c and python

2012-09-17 Thread Chris Fuller
The official documentation covers this in some detail: http://docs.python.org/extending/ http://docs.python.org/c-api/ Cython is an alternate implementation of Python. It's more of a blending of Python and C. It won't, in general, run Python source code or your favorite third-party library. To

Re: [Tutor] combining c and python

2012-09-17 Thread Oscar Benjamin
On 2012-09-17, Bala subramanian wrote: > Friends, > I code in python and so far able to write simple scripts for my needs. > Now i want to try the combination of c and python. > > 1) could someone please suggest me some good documentation on how > python and C can be combined. Some tutorials with

[Tutor] combining c and python

2012-09-17 Thread Bala subramanian
Friends, I code in python and so far able to write simple scripts for my needs. Now i want to try the combination of c and python. 1) could someone please suggest me some good documentation on how python and C can be combined. Some tutorials with simple examples. 2) If i know that a specific part