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
/
compile
/
extcmethcall.pyx
1
cdef class Spam:
2
3
cdef int tons
4
5
cdef void add_tons(self, int x):
6
pass
7
8
9
cdef class SuperSpam(Spam):
10
pass
11
12
13
cdef void tomato():
14
cdef Spam spam
15
cdef SuperSpam superspam
16
spam = superspam
17
spam.add_tons(42)
18
superspam.add_tons(1764)
19
20
tomato()