[Cython] Commit f2a4b09b broke petsc4py

Lisandro Dalcin dalcinl at gmail.com
Fri Mar 29 20:20:12 CET 2013


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


More information about the cython-devel mailing list