Cython has moved to github.

cython-devel

view tests/run/withnogil.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 6309e21af543
children 82d312a9f1fc
line source
1 __doc__ = u"""
2 >>> f(1)
3 (1, 17)
4 >>> g()
5 1
6 """
8 def f(x):
9 cdef int y
10 z = 42
11 with nogil:
12 y = 17
13 z = x
14 return z,y
16 def g():
17 with nogil:
18 h()
19 return 1
21 cdef int h() nogil except -1:
22 pass