Re: Cpoying a PyList to a C string array

2006-12-19 Thread Klaas
Sheldon wrote: > Thanks Mike, > > I am rewriting the code but I don't understand the part about the c > struct variable called work. The function I posted is a part of a > larger script and I just posted that part that was problamatic. I was > under the impression that if I declared the structure

Re: Cpoying a PyList to a C string array

2006-12-19 Thread Sheldon
Klaas skrev: > Sheldon wrote: > > The code below is a rookie attempt to copy a python list of strings to > > a string array in C. It works to some extent but results in memory > > problems when trying to free the C string array. Does anyone know how > > to do this properly? > > You have numerous

Re: Cpoying a PyList to a C string array

2006-12-19 Thread Klaas
Sheldon wrote: > The code below is a rookie attempt to copy a python list of strings to > a string array in C. It works to some extent but results in memory > problems when trying to free the C string array. Does anyone know how > to do this properly? You have numerous problems in this code. The

Cpoying a PyList to a C string array

2006-12-19 Thread Sheldon
Hi, The code below is a rookie attempt to copy a python list of strings to a string array in C. It works to some extent but results in memory problems when trying to free the C string array. Does anyone know how to do this properly? *** /*Re