1cdef class ExtType: 2 cdef c_method(self): 3 return self 4 5 def method(self): 6 return 1 7 8def call_method(ExtType et): 9 """ 10 >>> call_method( ExtType() ).method() 11 1 12 """ 13 return <ExtType>et.c_method() 14