Cython has moved to github.

cython-devel

view tests/run/r_typecast.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 abd7a32bdd08
children 82d312a9f1fc
line source
1 __doc__ = u"""
2 >>> call_method( ExtType() ).method()
3 1
4 """
6 cdef class ExtType:
7 cdef c_method(self):
8 return self
10 def method(self):
11 return 1
13 def call_method(ExtType et):
14 return <ExtType>et.c_method()