Cython has moved to github.

cython-devel

view tests/run/bishop2.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 >>> f = foo()
3 >>> 'a' in f
4 True
5 >>> 1 in f
6 True
7 """
9 cdef class foo:
11 def __contains__(self, key):
12 return 1