Cython has moved to github.

cython-devel

view tests/run/baas3.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 585d725fe537
children
line source
1 __doc__ = u"""
2 >>> m = MyClass()
3 >>> m is foo(m)
4 True
5 """
7 cdef class MyClass:
8 pass
10 def foo(MyClass c):
11 cdef MyClass res
12 res = c
13 return res