Re: [Numpy-discussion] PyArray_FILLWBYTE dangerous doc

2012-07-06 Thread Frédéric Bastien
Hi, I just did a PR that update the doc to warn about this. https://github.com/numpy/numpy/pull/332 Fred On Thu, Jun 28, 2012 at 10:28 PM, Frédéric Bastien wrote: > Hi, > > The doc of PyArray_FILLWBYTE here > http://docs.scipy.org/doc/numpy/reference/c-api.array.html is this > > > PyArray_FILL

[Numpy-discussion] PyArray_FILLWBYTE dangerous doc

2012-06-28 Thread Frédéric Bastien
Hi, The doc of PyArray_FILLWBYTE here http://docs.scipy.org/doc/numpy/reference/c-api.array.html is this PyArray_FILLWBYTE(PyObject* obj, int val) Fill the array pointed to by obj —which must be a (subclass of) bigndarray—with the contents of val (evaluated as a byte). In the code, what it