Cython has moved to github.

cython-devel

view tests/run/classbody_exec.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 d4794e588729
children
line source
1 __doc__ = u"""
2 >>> print(D)
3 {u'answer': (42, 42)}
4 """
6 import sys
7 if sys.version_info[0] >= 3:
8 __doc__ = __doc__.replace(u"u'", u"'")
10 D = {}
12 def foo(x):
13 return x, x
15 cdef class Spam:
16 answer = 42
17 D[u'answer'] = foo(answer)