Cython has moved to github.

cython-devel

view tests/run/cdef_opt.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 >>> a = A()
3 >>> a.foo()
4 (True, 'yo')
5 >>> a.foo(False)
6 (False, 'yo')
7 >>> a.foo(10, 'yes')
8 (True, 'yes')
9 """
11 cdef class A:
12 cpdef foo(self, bint a=True, b="yo"):
13 return a, b