Cython has moved to github.
cython-devel
view tests/errors/e_extweakref.pyx @ 3091:1a2e04bc1395
remove dependency on structmember.h
| author | Lisandro Dalcin <dalcinl@gmail.com> |
|---|---|
| date | Thu Mar 11 17:21:13 2010 -0300 (2 years ago) |
| parents | 0610bab5f30b |
| children | 3567d4aa9899 |
line source
1 cdef class C:
2 cdef object __weakref__
4 cdef class D:
5 cdef public object __weakref__
7 cdef class E:
8 cdef readonly object __weakref__
10 cdef void f():
11 cdef C c
12 cdef object x
13 x = c.__weakref__
14 c.__weakref__ = x
15 _ERRORS = u"""
16 5:20: Illegal use of special attribute __weakref__
17 5:20: Illegal use of special attribute __weakref__
18 5:20: Special attribute __weakref__ cannot be exposed to Python
19 8:22: Illegal use of special attribute __weakref__
20 8:22: Special attribute __weakref__ cannot be exposed to Python
21 13:6: Illegal use of special attribute __weakref__
22 14:2: Illegal use of special attribute __weakref__
23 """
