On Fri, Dec 11, 2009 at 11:49 AM, Stefan Behnel <[email protected]> wrote: > > Stefan Behnel, 11.12.2009 14:14: >> Hi Lisandro, >> >> Lisandro Dalcin, 10.12.2009 16:13: >>> After this changeset ... >>> >>> changeset: 2764:885dbfad02aa >>> user: Stefan Behnel >>> date: Tue Dec 08 01:05:01 2009 +0100 >>> summary: translate Python float calculations into C doubles >>> >>> I cannot Cythonize mpi4py (note: I've not enabled type inference). The >>> failure happens in many methods like this one: >>> >>> cdef class Datatype: >>> ... >>> def Dup(self): >>> """ >>> Duplicate a datatype >>> """ >>> cdef Datatype datatype = <Datatype>type(self)() >>> ..... >>> return datatype >>> >>> >>> Traceback below: >>> [...] >>> line 2452, in analyse_types >>> if func_type is Builtin.type_type and function.entry.is_builtin and \ >>> AttributeError: 'SimpleCallNode' object has no attribute 'entry' >> >> Thanks for the test case, I can reproduce this. I'll look into it. > > Yep, that code was actually much too generic. Fixed here: > > http://hg.cython.org/cython-devel/rev/0c48cba30316 >
Many thanks, Stefan. All is working from my side. -- Lisandro Dalcín --------------- Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC) Instituto de Desarrollo Tecnológico para la Industria Química (INTEC) Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET) PTLC - Güemes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
