Search Results

Search found 2 results on 1 pages for 'davoud taghawi nejad'.

Page 1/1 | 1 

  • calling a cdef in a cdef class

    - by Davoud Taghawi-Nejad
    Hello, is their any way to make this work, without sacrificing the cdef in cdef caller? (no use of cpdef either) from array import * from numpy import * cdef class Agents: cdef public caller(self): print "caller" A[2].called() cdef called(self): print "called" A = [Agents() for i in range(2)] def main(): A[1].caller()

    Read the article

1