[Numpy-discussion] Change in __array_priority__ behavior breaks code.

2011-12-23 Thread Charles R Harris
Hi All, The following change breaks existing code, my polynomial classes for example. File: numpy/core/src/umath/ufunc_object.c Previous Code: /* * FAIL with NotImplemented if the other object has * the __r__ method and has __array_priority__ as * an attribute (signalling it

[Numpy-discussion] numpy int64_t incompatibility on OSX

2011-12-23 Thread Adam Klein
I am cross-posting this question; I think this question is more numpy-related than cython-related. Original question is at bottom. In OSX 10.6, C system headers such as /usr/include/i386/types.h (as well as other standard headers like C99 stdint.h) define int64_t as typedef *long long* int64_t

Re: [Numpy-discussion] PyInt and Numpy's int64 conversion

2011-12-23 Thread Wes McKinney
On Fri, Dec 23, 2011 at 4:37 AM, xantares 09 wrote: > Hi, > > I'm using Numpy from the C python api side while tweaking my SWIG interface > to work with numpy array types. > I want to convert a numpy array of integers (whose elements are numpy's > 'int64') > The problem is that it this int64 type

[Numpy-discussion] EPD 7.2 released

2011-12-23 Thread Ilan Schnell
Hello, I am pleased to announce the release of Enthought Python Distribution, EPD version 7.2, along with its "EPD Free" counterpart. The highlights of this release are: the addition of GDAL and updates to over 30 packages, including SciPy, matplotlib and IPython. The new IPython 0.12 includes t

[Numpy-discussion] PyInt and Numpy's int64 conversion

2011-12-23 Thread xantares 09
Hi, I'm using Numpy from the C python api side while tweaking my SWIG interface to work with numpy array types. I want to convert a numpy array of integers (whose elements are numpy's 'int64') The problem is that it this int64 type is not compatible with the standard python integer type: I cann

Re: [Numpy-discussion] Owndata flag

2011-12-23 Thread Gael Varoquaux
On Thu, Dec 15, 2011 at 04:36:24PM +, Robert Kern wrote: > > More explicitly, I have some temporary home-made C structure that holds > > a pointer to an array. I prepare (using Cython) an numpy.ndarray using > > the PyArray_NewFromDescr function. I can delete my temporary C structure > > withou