cython-devel
view tests/run/r_jiba1.pyx @ 719:e21391d5f23a
quick work-around for PEP 3121 implementation in Py3 beta
| author | Stefan Behnel <scoder@users.berlios.de> |
|---|---|
| date | Thu Jun 12 09:28:56 2008 +0200 (2 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()
