Re: Passing python list from C to python

2009-07-17 Thread Aahz
In article <94c1adf3-a25d-4ae5-9f38-7ca8680d0...@b14g2000yqd.googlegroups.com>, hartley wrote: >On Jul 16, 9:26=A0pm, a...@pythoncraft.com (Aahz) wrote: >> In article <0afc5c4d-1af5-4d0e-9442-26b51b12e...@m11g2000yqh.googlegroups= >.com>, >> hartley =A0 wrote: >>> >>>If you had loosened up on the

Re: Passing python list from C to python

2009-07-17 Thread hartley
On Jul 16, 9:26 pm, a...@pythoncraft.com (Aahz) wrote: > In article > <0afc5c4d-1af5-4d0e-9442-26b51b12e...@m11g2000yqh.googlegroups.com>, > > hartley   wrote: > > >If you had loosened up on the sarcasm I would probably have read what > >you wrote more thoroughly instead of just skimming through i

Re: Passing python list from C to python

2009-07-16 Thread Aahz
In article <0afc5c4d-1af5-4d0e-9442-26b51b12e...@m11g2000yqh.googlegroups.com>, hartley wrote: > >If you had loosened up on the sarcasm I would probably have read what >you wrote more thoroughly instead of just skimming through it. Thanks >for the help, but you should seriously consider doing som

Re: Passing python list from C to python

2009-07-16 Thread John Machin
On Jul 16, 11:13 pm, hartley wrote: > /* the first telling */ > (...) > /* the second telling */ > (...) > /* the third telling */ > > - > If you had loosened up on the sarcasm That wasn't sarcasm, it was an attempt at humourous watering-down the expression of exasperation at continued ignoring o

Re: Passing python list from C to python

2009-07-16 Thread hartley
/* the first telling */ (...) /* the second telling */ (...) /* the third telling */ - If you had loosened up on the sarcasm I would probably have read what you wrote more thoroughly instead of just skimming through it. Thanks for the help, but you should seriously consider doing something with yo

Re: Passing python list from C to python

2009-07-16 Thread hartley
/* the first telling */ (...) /* the third telling */ (...) /* the third telling */ - If you had loosened up on the sarcasm I would probably have read what you wrote more thoroughly instead of just skimming through it. Thanks for the help, but you should seriously consider doing something with yo

Re: Passing python list from C to python

2009-07-15 Thread John Machin
On Jul 15, 7:54 pm, hartley wrote: > On Jul 14, 2:21 pm, John Machin wrote: > > On Jul 14, 7:22 pm, hartley wrote:> > > I'm very new > > at wrapping Python/C, and I have run into some problems. [snip] /* the first telling */ > > > > statement C_embedding.buff = the_pylist ? > > > > > BTW C-em

Re: Passing python list from C to python

2009-07-15 Thread hartley
On Jul 14, 2:21 pm, John Machin wrote: > On Jul 14, 7:22 pm, hartley wrote:> > > I'm very new at > wrapping Python/C, and I have run into some problems. > > [snip] > > > > > > >         pValue = PyObject_CallObject(pFunc,NULL); > > > > > pValue is now a PyList - i've even verified this with: > >

Re: Passing python list from C to python

2009-07-14 Thread John Machin
On Jul 14, 7:22 pm, hartley wrote: > > > I'm very new at wrapping Python/C, and I have run into some problems. [snip] > > >         pValue = PyObject_CallObject(pFunc,NULL); > > > > pValue is now a PyList - i've even verified this with: > > > > int a = PyList_Check(pValue); > > >         printf("

Re: Passing python list from C to python

2009-07-14 Thread hartley
On Jul 13, 6:35 pm, John Machin wrote: > On Jul 14, 1:47 am, hartley wrote: > > > > > I'm very new at wrapping Python/C, and I have run into some problems. > > > I have one python module that provides me with a list (provideBuffer > > in provideBuff.py): > > >  Py_Initialize(); > >         pName

Re: Passing python list from C to python

2009-07-14 Thread hartley
> > I'm very new at wrapping Python/C, and I have run into some problems. > > > I have one python module that provides me with a list (provideBuffer > > in provideBuff.py): > > >  Py_Initialize(); > >         pName = PyString_FromString("provideBuff"); > >         pModule = PyImport_Import(pName);

Re: Passing python list from C to python

2009-07-13 Thread John Machin
On Jul 14, 1:47 am, hartley wrote: > I'm very new at wrapping Python/C, and I have run into some problems. > > I have one python module that provides me with a list (provideBuffer > in provideBuff.py): > >  Py_Initialize(); >         pName = PyString_FromString("provideBuff"); >         pModule =

Passing python list from C to python

2009-07-13 Thread hartley
I'm very new at wrapping Python/C, and I have run into some problems. I have one python module that provides me with a list (provideBuffer in provideBuff.py): Py_Initialize(); pName = PyString_FromString("provideBuff"); pModule = PyImport_Import(pName); pFunc = PyObject_