On 11 June 2012 20:55, Pauli Virtanen wrote:
> 11.06.2012 21:23, Pauli Virtanen kirjoitti:
>> Hi,
>>
>> 11.06.2012 21:16, mark florisson kirjoitti:
>> [clip]
>>> Yeah, there was some weird bug with PyIndex_Check() not operating
>>> properly. Could you retry with the latest master?
>>
>> Doesn't se
11.06.2012 21:23, Pauli Virtanen kirjoitti:
> Hi,
>
> 11.06.2012 21:16, mark florisson kirjoitti:
> [clip]
>> Yeah, there was some weird bug with PyIndex_Check() not operating
>> properly. Could you retry with the latest master?
>
> Doesn't seem to work in 5a0effd0 :(
[clip]
Uhh, Numpy header a
11.06.2012 21:17, mark florisson kirjoitti:
[clip]
> Thanks, could you provide a pull request? That makes it easier to
> merge and assign credit.
Ok, this one seemed to already have been fixed in Cython master.
Pauli
___
cython-devel mailing li
11.06.2012 21:17, mark florisson kirjoitti:
[clip]
> Thanks, could you provide a pull request? That makes it easier to
> merge and assign credit.
Ok, I'll try to not only just complain :)
BRB,
Pauli
___
cython-devel mailing list
cython-devel@p
Hi,
11.06.2012 21:16, mark florisson kirjoitti:
[clip]
> Yeah, there was some weird bug with PyIndex_Check() not operating
> properly. Could you retry with the latest master?
Doesn't seem to work in 5a0effd0 :(
Traceback (most recent call last):
File "", line 1, in ?
File "fail.pyx", line 1
On 11 June 2012 20:12, Pauli Virtanen wrote:
> Hi,
>
> We ran with Scipy to a compilation failure on MinGW in Cython code:
>
> http://projects.scipy.org/scipy/ticket/1673
>
> interpnd.c:10580: error: initializer element is not constant
> interpnd.c:10580: error: (near initialization for
> `__pyx_C
On 11 June 2012 20:08, Pauli Virtanen wrote:
> Hi,
>
> This doesn't work on Python 2.4 (works on >= 2.5):
>
>
> cimport numpy as np
> import numpy as np
>
> def _foo():
> cdef double[:] a
> a = np.array([1.0])
> return np.asarray(a)
>
> def foo():
> print _foo()
>
Hi,
We ran with Scipy to a compilation failure on MinGW in Cython code:
http://projects.scipy.org/scipy/ticket/1673
interpnd.c:10580: error: initializer element is not constant
interpnd.c:10580: error: (near initialization for
`__pyx_CyFunctionType_type.tp_call')
Can be fixed like this:
...
+s
Hi,
This doesn't work on Python 2.4 (works on >= 2.5):
cimport numpy as np
import numpy as np
def _foo():
cdef double[:] a
a = np.array([1.0])
return np.asarray(a)
def foo():
print _foo()
Spotted when using Cython 1.6 in Scipy. Results to:
Python 2.4.