projects
/
cython.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Remove trailing whitespace.
[cython.git]
/
tests
/
broken
/
r_extimpinherit.pyx
1
from b_extimpinherit cimport Parrot
2
3
4
cdef class Norwegian(Parrot):
5
6
cdef action(self):
7
print "This parrot is resting."
8
9
cdef plumage(self):
10
print "Lovely plumage!"
11
12
13
def main():
14
cdef Parrot p
15
cdef Norwegian n
16
p = Parrot()
17
n = Norwegian()
18
print "Parrot:"
19
p.describe()
20
p.action()
21
print "Norwegian:"
22
n.describe()
23
n.action()
24
n.plumage()