projects
/
cython.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
merged in Vitek's generators branch
[cython.git]
/
tests
/
compile
/
extcoerce.pyx
1
# mode: compile
2
3
cdef class Grail:
4
5
def __add__(int x, float y):
6
pass
7
8
cdef class Swallow:
9
pass
10
11
def f(Grail g):
12
cdef int i = 0
13
cdef Swallow s
14
cdef object x
15
g = x
16
x = g
17
g = i
18
i = g
19
g = s
20
s = g
21