[Cython] cython-0.11.rc: Updated tar, test fails (but gets further)

Stefan Behnel stefan_ml at behnel.de
Tue Mar 10 15:36:53 CET 2009


Neal Becker wrote:
> I grabbed a NEW tar from http://cython.org/Cython-0.11.rc.tar.gz.  (I
> won't
> comment on the confusion caused by changing the file without changing the
> name :)

Since you don't do it, I will: it's usually a very bad idea to replace a
release (even a release candidate) with a modified version without
changing the name, as it tends to generate a lot of confusion as to what
people are reporting bugs about.

I actually know what I'm talking about. ;-)


> Now testing at least starts, but seems to have some errors:

* warning: left shift count >= width of type

I don't get these locally. The problem is in __Pyx_GetItemGeneric, second
line: "1ULL << (sizeof(Py_ssize_t)*8)". Looks like that's not 64bit clean.


* arrayassign.c: In function
"__pyx_pf_11arrayassign_test_literal_list_slice_start_param":
arrayassign.c:775: warning: format "%d" expects type "int", but argument 4
has type "Py_ssize_t"
arrayassign.cpp: In function "PyObject*
__pyx_pf_11arrayassign_test_literal_list_slice_start_end_param(PyObject*,
PyObject*, PyObject*)":
arrayassign.cpp:1056: warning: format "%d" expects type "int", but
argument 4 has type "long int"


Same thing, 64 bit issues IMHO.


* Error converting Pyrex file to C:
------------------------------------------------------------
...
cdef object[foo2=short unsigned int] x
                      ^
------------------------------------------------------------

Cython_Compiler_Tests_TestBuffer_TestBufferParsing_test_notype_as_expr1:1:23:
Expected: expression

Error converting Pyrex file to C:
------------------------------------------------------------
...
cdef object[int, short unsigned int] x
                      ^
------------------------------------------------------------

Cython_Compiler_Tests_TestBuffer_TestBufferParsing_test_notype_as_expr2:1:23:
Expected: expression

Error converting Pyrex file to C:
------------------------------------------------------------
...
cdef object[foo=1, 2] x
                  ^
------------------------------------------------------------

Cython_Compiler_Tests_TestBuffer_TestBufferParsing_test_pos_after_key:1:19:
Non-keyword arg following keyword arg
***

I remember seeing these, but they went away when rebuilding Cython. That's
why I'm surprised to see them in a clean build now...

Dag, any idea where those might come from?

Stefan



More information about the Cython-dev mailing list