Re: [Numpy-discussion] fromfile() -- aarrgg!

2010-01-12 Thread Christopher Barker
Christopher Barker wrote: > static int > @fn...@_fromstr(char *str, @type@ *ip, char **endptr, PyArray_Descr > *NPY_UNUSED(ignore)) > { > double result; > result = NumPyOS_ascii_strtod(str, endptr); > *ip = (@type@) result; > return 0; > } OK, I've done the diagnostics, but no

Re: [Numpy-discussion] fromfile() -- aarrgg!

2010-01-12 Thread Christopher Barker
Pauli Virtanen wrote: > ma, 2010-01-11 kello 16:11 -0800, Christopher Barker kirjoitti: > [clip] >> "If no conversion is performed, zero is returned and the value of nptr >> is stored in the location referenced by endptr." >> >> off do do some more testing, but I guess that means that those pointe

Re: [Numpy-discussion] fromfile() -- aarrgg!

2010-01-12 Thread Pauli Virtanen
ma, 2010-01-11 kello 16:11 -0800, Christopher Barker kirjoitti: [clip] > "If no conversion is performed, zero is returned and the value of nptr > is stored in the location referenced by endptr." > > off do do some more testing, but I guess that means that those pointers > need to be checked afte

Re: [Numpy-discussion] fromfile() -- aarrgg!

2010-01-11 Thread Christopher Barker
Pauli Virtanen wrote: > Thu, 07 Jan 2010 17:21:34 -0800, Christopher Barker wrote: > [clip] >> It does pass on that return value, but, from ctors.c: >> >> fromfile_next_element(FILE **fp, void *dptr, PyArray_Descr *dtype, >>void *NPY_UNUSED(stream_data)) >> { >> /* the