Cython has moved to github.

cython-devel

view tests/run/r_barbieri1.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 739b62170404
children
line source
1 __doc__ = u"""
2 >>> try:
3 ... B()
4 ... except Exception, e:
5 ... print("%s: %s" % (e.__class__.__name__, e))
6 Exception: crash-me
7 """
9 import sys
10 if sys.version_info[0] >= 3:
11 __doc__ = __doc__.replace(u"Exception, e", u"Exception as e")
13 cdef class A:
14 def __cinit__(self):
15 raise Exception(u"crash-me")
17 cdef class B(A):
18 def __cinit__(self):
19 print "hello world"