2
是他們的任何方式來使這個工作,而不犧牲在cdef調用者的cdef? (不使用cpdef)在cdef類中調用cdef
from array import *
from numpy import *
cdef class Agents:
cdef public caller(self):
print "caller"
A[1].called()
cdef called(self):
print "called"
A = [Agents() for i in range(2)]
def main():
A[0].caller()