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()