Cython has moved to github.
cython-devel
view tests/run/extmember.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 | 8b22ff3db9f7 |
| children | 0310198e281e |
line source
1 __doc__ = """
2 >>> s = Spam()
3 >>> s.e = s
4 >>> s.e = 1
5 Traceback (most recent call last):
6 TypeError: Cannot convert int to extmember.Spam
7 >>> s.e is s
8 True
9 >>> s.e = None
11 >>> s = Bot()
12 >>> s.e = s
13 >>> s.e = 1
14 Traceback (most recent call last):
15 TypeError: Cannot convert int to extmember.Bot
16 >>> s.e is s
17 True
18 >>> s.e = None
19 """
21 # declared in the pxd
22 cdef class Spam:
23 pass
25 # not declared in the pxd
26 cdef class Bot:
27 cdef public Bot e
