Re: Unexpected extension module behaviour

2006-05-24 Thread rimmer
Thanks for the help John. Indeed, changing <= to < has it licked. -- http://mail.python.org/mailman/listinfo/python-list

Re: Unexpected extension module behaviour

2006-05-24 Thread John Machin
On 25/05/2006 12:09 PM, rimmer wrote: > I'm writing an extension module in C in which I'm passing an array of > floats from C to python. The code below illustrates a simple C > function designed to output an array of floats. > [snip] Couldn't restrain myself from reading further :-) > > Then I

Re: Unexpected extension module behaviour

2006-05-24 Thread John Machin
On 25/05/2006 12:09 PM, rimmer wrote: > I'm writing an extension module in C in which I'm passing an array of > floats from C to python. The code below illustrates a simple C > function designed to output an array of floats. > > - > extTest.c > - > #include > > double *testArray

Unexpected extension module behaviour

2006-05-24 Thread rimmer
I'm writing an extension module in C in which I'm passing an array of floats from C to python. The code below illustrates a simple C function designed to output an array of floats. - extTest.c - #include double *testArray(int nsamp) { double nums[1]; int i; double cum