Re: [Numpy-discussion] stderr

2009-06-28 Thread David Cournapeau
On Sun, Jun 28, 2009 at 4:38 AM, Charles R Harris wrote: > > > On Sat, Jun 27, 2009 at 1:12 PM, Pauli Virtanen wrote: >> >> On 2009-06-27, Charles R Harris wrote: >> [clip] >> > >> >    PyOS_snprintf(format, sizeof(format), _FMT1, prec); >> >    res = numpyos_ascii_for...@type@(buf, buflen, forma

Re: [Numpy-discussion] stderr

2009-06-27 Thread Charles R Harris
On Sat, Jun 27, 2009 at 1:12 PM, Pauli Virtanen wrote: > On 2009-06-27, Charles R Harris wrote: > [clip] > > > >PyOS_snprintf(format, sizeof(format), _FMT1, prec); > >res = numpyos_ascii_for...@type@(buf, buflen, format, val, 0); > >if (res == NULL) { > >fprintf(stderr, "Erro

Re: [Numpy-discussion] stderr

2009-06-27 Thread Pauli Virtanen
On 2009-06-27, Charles R Harris wrote: [clip] > >PyOS_snprintf(format, sizeof(format), _FMT1, prec); >res = numpyos_ascii_for...@type@(buf, buflen, format, val, 0); >if (res == NULL) { >fprintf(stderr, "Error while formatting\n"); >return; >} > [clip] > Do we want t

[Numpy-discussion] stderr

2009-06-26 Thread Charles R Harris
There are a few spots where messages are printed to stderr. Some of these look almost like debugging stuff, for instance NPY_NO_EXPORT void form...@name@(char *buf, size_t buflen, @name@ val, unsigned int prec) { /* XXX: Find a correct size here for format string */ char format[64], *res;