Cython has moved to github.
cython-devel
view tests/errors/cdef_members_T517.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 | |
| children |
line source
1 ctypedef void* VoidP
3 cdef class Spam:
4 cdef VoidP vp0
5 cdef readonly VoidP vp2
6 cdef public VoidP vp1
8 ctypedef struct Foo:
9 int i
11 cdef class Bar:
12 cdef Foo foo0
13 cdef readonly Foo foo2
14 cdef public Foo foo1
15 pass
17 _ERRORS = u"""
18 5:24: C attribute of type 'VoidP' cannot be accessed from Python
19 5:24: Cannot convert 'VoidP' to Python object
20 6:24: C attribute of type 'VoidP' cannot be accessed from Python
21 6:24: Cannot convert 'VoidP' to Python object
22 6:24: Cannot convert Python object to 'VoidP'
23 14:22: C attribute of type 'Foo' cannot be accessed from Python
24 14:22: Cannot convert Python object to 'Foo'
25 """
