Cython has moved to github.

cython-devel

view tests/run/temps_corner1.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
children 0310198e281e
line source
1 __doc__ = """
2 >>> B().coeffs_bitsize()
3 [2]
4 """
6 cdef class A:
7 def numerator(self):
8 return self
10 cdef int bitsize(A a):
11 return 1
13 coeffs = [A()]
15 class B:
16 def coeffs_bitsize(self):
17 r = [bitsize(c.numerator())+1 for c in coeffs]
18 return r