Cython has moved to github.
cython-devel
view tests/errors/e_strcoerce.pyx @ 2158:50307880f9c1
almost complete refactoring of constant allocation to move it into the code generation phase
| author | Stefan Behnel <scoder@users.berlios.de> |
|---|---|
| date | Wed Mar 18 21:44:34 2009 +0100 (3 years ago) |
| parents | 497ff54e7a06 |
| children | b491a0ae2d45 |
line source
1 cdef int c1 = "t" # works
2 cdef int c2 = "te" # fails
3 cdef int cx = "test" # fails
5 cdef int x1 = "\xFF" # works
6 cdef int x2 = u"\xFF" # fails
9 _ERRORS = u"""
10 2:14: Only single-character byte strings can be coerced into ints.
11 3:14: Only single-character byte strings can be coerced into ints.
12 6:14: Unicode objects do not support coercion to C types.
13 """
