Cython has moved to github.
cython-devel
view tests/run/inhcmethcall.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 | 612957ef6e8f |
| children |
line source
1 __doc__ = u"""
2 >>> p = Norwegian()
3 >>> p.describe()
4 Norwegian
5 Parrot
6 """
8 cdef class Parrot:
10 cdef void _describe(self):
11 print u"Parrot"
13 def describe(self):
14 self._describe()
16 cdef class Norwegian(Parrot):
18 cdef void _describe(self):
19 print u"Norwegian"
20 Parrot._describe(self)
