Cython has moved to github.

cython-devel

view tests/errors/builtin_type_conflict_T170.pyx @ 1889:c22c5f879f26

Warning, not error, on builting type redeclaration.

Throwing an error is to invasive for 0.11.x, and also one needs to be able to subclass/access attributes of builtin types before we get rid of the declaration altogether.
author Robert Bradshaw <robertwb@math.washington.edu>
date Wed Mar 25 15:54:27 2009 -0700 (3 years ago)
parents dc7359d237b9
children 0610bab5f30b
line source
1 cdef extern from *:
2 ctypedef class __builtin__.list [object PyListObject]:
3 pass
5 cdef list foo = []
7 # This is too invasive for Python 0.11.x, re-enable in 0.12
8 NEW_ERRORS = u"""
9 :2:4: list already a builtin Cython type
10 """
12 _ERRORS = u"""
13 :5:16: Cannot coerce list to type 'list'
14 """