[Cython] Commit f2a4b09b broke petsc4py

2013-03-29 Thread Lisandro Dalcin
https://github.com/cython/cython/commit/f2a4b09b94dc0783625dc869af0880742c29f58d

I could not figure out how to fix it, but the following patch to the
test case reproduces the problem:


diff --git a/tests/run/tp_new_cimport.srctree b/tests/run/tp_new_cimport.srctree
index d60d712..632172c 100644
--- a/tests/run/tp_new_cimport.srctree
+++ b/tests/run/tp_new_cimport.srctree
@@ -42,7 +42,7 @@ def test_sub():

  a.pxd 

-cdef class ExtTypeA:
+cdef api class ExtTypeA[type ExtTypeA_Type, object ExtTypeAObject]:
 cdef readonly attrA

  a.pyx 


--
Lisandro Dalcin
---
CIMEC (INTEC/CONICET-UNL)
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
3000 Santa Fe, Argentina
Tel: +54-342-4511594 (ext 1011)
Tel/Fax: +54-342-4511169
___
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel


Re: [Cython] Commit f2a4b09b broke petsc4py

2013-03-29 Thread Stefan Behnel
Hi Lisandro!

Lisandro Dalcin, 29.03.2013 20:20:
> https://github.com/cython/cython/commit/f2a4b09b94dc0783625dc869af0880742c29f58d
> 
> I could not figure out how to fix it, but the following patch to the
> test case reproduces the problem:
> 
> 
> diff --git a/tests/run/tp_new_cimport.srctree 
> b/tests/run/tp_new_cimport.srctree
> index d60d712..632172c 100644
> --- a/tests/run/tp_new_cimport.srctree
> +++ b/tests/run/tp_new_cimport.srctree
> @@ -42,7 +42,7 @@ def test_sub():
> 
>   a.pxd 
> 
> -cdef class ExtTypeA:
> +cdef api class ExtTypeA[type ExtTypeA_Type, object ExtTypeAObject]:
>  cdef readonly attrA
> 
>   a.pyx 

Hmm, yes, that's not obvious to me either. I pushed a quick fix, but I'm
sure there's a cleaner way to do this. (And if there isn't, there should be
one...)

https://github.com/cython/cython/commit/3257193a7865c1f45ac2479954be5569f0b8337e

Stefan

___
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel