Re: [Cython] "relaxed_strides" test broken with NumPy 1.8

2014-01-18 Thread Sebastian Berg
On Sun, 2014-01-05 at 09:26 +0100, Stefan Behnel wrote: > Stefan Behnel, 05.01.2014 09:03: > > Nathaniel Smith, 05.01.2014 02:07: > >> On 4 Jan 2014 22:01, "Stefan Behnel" wrote: > >>> Stefan Behnel, 04.01.2014 22:51: > Stefan Behnel, 04.01.2014 22:47: > > Nathaniel Smith, 04.01.2014 18:36

Re: [Cython] [PATCH] Refcount error when transposing memoryview attribute of an extension class

2013-04-17 Thread Sebastian Berg
On Wed, 2013-04-17 at 13:39 +0200, Stefan Behnel wrote: > Sebastian Berg, 17.04.2013 12:32: > > On Fri, 2013-04-12 at 17:37 +0100, mark florisson wrote: > >> Stefan, do you want to wait with 0.19 for the strides fix? We don't > >> know when 0.20 would be, I

Re: [Cython] [PATCH] Refcount error when transposing memoryview attribute of an extension class

2013-04-17 Thread Sebastian Berg
On Fri, 2013-04-12 at 17:37 +0100, mark florisson wrote: > > > On 12 April 2013 13:20, Matěj Laitl wrote: > On 8. 4. 2013 Matěj Laitl wrote: > > Hi cython-devel and Mark, > > I was getting > > > > > Fatal Python error: Acquisition count is 0 (line XYZ) >

Re: [Cython] Upcoming cython/numpy breakage with stride checking

2013-04-08 Thread Sebastian Berg
On Mon, 2013-04-08 at 12:31 +0200, Dag Sverre Seljebotn wrote: > On 04/08/2013 09:59 AM, Sebastian Berg wrote: > > On Mon, 2013-04-08 at 08:42 +0200, Dag Sverre Seljebotn wrote: > >> On 04/06/2013 04:19 PM, Nathaniel Smith wrote: > >>> Hi all, > >>> &g

Re: [Cython] Upcoming cython/numpy breakage with stride checking

2013-04-08 Thread Sebastian Berg
On Mon, 2013-04-08 at 08:42 +0200, Dag Sverre Seljebotn wrote: > On 04/06/2013 04:19 PM, Nathaniel Smith wrote: > > Hi all, > > > > If you build current numpy master with > >NPY_RELAXED_STRIDES_CHECKING=1 python setup.py install > > then Cython code using ndarrays starts blowing up, e.g.: > > >

Re: [Cython] Be more forgiving about memoryview strides

2013-03-01 Thread Sebastian Berg
On Fri, 2013-03-01 at 12:17 -0800, Robert Bradshaw wrote: > On Fri, Mar 1, 2013 at 7:56 AM, Sebastian Berg > wrote: > > On Thu, 2013-02-28 at 23:25 -0800, Robert Bradshaw wrote: > >> On Thu, Feb 28, 2013 at 11:12 AM, Nathaniel Smith wrote: > >> > On Thu, Feb 28,

Re: [Cython] Be more forgiving about memoryview strides

2013-03-01 Thread Sebastian Berg
On Thu, 2013-02-28 at 23:25 -0800, Robert Bradshaw wrote: > On Thu, Feb 28, 2013 at 11:12 AM, Nathaniel Smith wrote: > > On Thu, Feb 28, 2013 at 5:50 PM, Robert Bradshaw wrote: > >> On Thu, Feb 28, 2013 at 7:13 AM, Sebastian Berg > >> wrote: > >>> Hey, >

[Cython] Be more forgiving about memoryview strides

2013-02-28 Thread Sebastian Berg
Hey, Maybe someone here already saw it (I don't have a track account, or I would just create a ticket), but it would be nice if Cython was more forgiving about contiguous requirements on strides. In the future this would make it easier for numpy to go forward with changing the contiguous flags to

[Cython] change strides attribute

2012-12-07 Thread Sebastian Berg
Hey, The current numpy contiguous flags are relatively restrictive. This means that for example an array of `shape == (1,3,1)` and `itemsize == 1` is C-Contiguous if `strides == (3,1,1)` and F-Contiguous if `strides == (1,1,3)`. It would simplify flags settings and avoid copies here and there and