Cython has moved to github.

cython-devel

view tests/run/ishimoto3.pyx @ 1622:4f0327bdebc9

test for temp allocation bug in call
author Robert Bradshaw <robertwb@math.washington.edu>
date Sat Jan 17 01:25:34 2009 -0800 (3 years ago)
parents ff6249a604c2
children
line source
1 __doc__ = u"""
2 >>> c1 = C1()
3 >>> c2 = C2(c1)
4 >>> c1 is c2.getc1()
5 True
6 """
8 cdef class C1:
9 pass
11 cdef class C2:
12 cdef C1 c1
14 def __init__(self, arg):
15 self.c1 = arg
17 def getc1(self):
18 return self.c1