Cython has moved to github.
cython-devel
view tests/run/r_jiba1.pyx @ 1622:4f0327bdebc9
test for temp allocation bug in call
| author | Robert Bradshaw <robertwb@math.washington.edu> |
|---|---|
| date | Sat Jan 17 01:25:34 2009 -0800 (3 years ago) |
| parents | 6309e21af543 |
| children |
line source
1 __doc__ = u"""
2 >>> test()
3 This parrot is resting.
4 Lovely plumage!
5 """
8 cdef class Parrot:
10 cdef void describe(self):
11 print u"This parrot is resting."
13 def describe_python(self):
14 self.describe()
16 cdef class Norwegian(Parrot):
18 cdef void describe(self):
19 print u"Lovely plumage!"
21 def test():
22 cdef Parrot p1, p2
23 p1 = Parrot()
24 p2 = Norwegian()
25 p1.describe()
26 p2.describe()
