1 Nov 2008 23:56
Re: [Cython] Cython 0.9.8.2 beta
Robert Bradshaw wrote: > There are lots of new things in cython-devel, and we're overdue for a > release. I have posed a beta up at http://cython.org/ > Cython-0.9.8.2.beta.tar.gz based on the current devel. Sage compiles > and passes all tests, please try it out on your own projects. I gave it a try with Python 2.6 on Windows. 8 regression tests fail on Python 2.6 release using Visual Studio 9.0 on Windows XP. This was run using the changeset 1291:16fc9454a2e5 The output is stored here: http://trac.cython.org/cython_trac/ticket/106
foo.pxd
cdef foo()
foo.pyx
cdef foo():
pass
bar.pyx
cimport foo
foo.foo()
Once both compiled, importing bar is OK.
Now I move foo.pyd and bar.pyd into a package (pkg).
Then I import pkg.bar. It fails importing foo.
As previously mentionned, this is because "cimport foo" is mapped using
PyImport_Import(), that lets parameter globals to NULL.
The issue can be solved by replacing, in
static PyObject *__Pyx_ImportModule(char *name)
RSS Feed