From: Robert Bradshaw Date: Thu, 15 Oct 2009 08:42:28 +0000 (-0700) Subject: Testcase for #411, cpdef temps. X-Git-Tag: 0.13.beta0~2^2~121^2~53 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b054c8c47f59dc26a2d8a1ac7ec11dd108615bc3;p=cython.git Testcase for #411, cpdef temps. --- diff --git a/tests/run/cpdef_temps_T411.pyx b/tests/run/cpdef_temps_T411.pyx new file mode 100644 index 00000000..aa1bc7d2 --- /dev/null +++ b/tests/run/cpdef_temps_T411.pyx @@ -0,0 +1,21 @@ +__doc__ = """ + >>> A().is_True() + True + >>> A().is_False() + False + + >>> B().is_True() + True + >>> B().is_False() + False +""" + +cdef class A: + cpdef is_True(self): + return True + cpdef is_False(self): + return not self.is_True() + +class B(A): + def is_True(self): + return True