Cython has moved to github.

cython-devel

view tests/run/r_pyclass.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 >>> order()
3 42 tons of spam!
4 """
6 class Spam:
8 def __init__(self, w):
9 self.weight = w
11 def serve(self):
12 print self.weight, u"tons of spam!"
14 def order():
15 s = Spam(42)
16 s.serve()