Cython has moved to github.

cython-devel

view tests/run/r_jiba1.pyx @ 526:6309e21af543

tons of fixes for the test suite: docstrings must be unicode strings to run in Py3's doctest (obviously...)
author Stefan Behnel <scoder@users.berlios.de>
date Wed May 14 23:54:22 2008 +0200 (4 years ago)
parents ff6249a604c2
children 95312b19ee49
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 "This parrot is resting."
13 def describe_python(self):
14 self.describe()
16 cdef class Norwegian(Parrot):
18 cdef void describe(self):
19 print "Lovely plumage!"
21 def test():
22 cdef Parrot p1, p2
23 p1 = Parrot()
24 p2 = Norwegian()
25 p1.describe()
26 p2.describe()