[Cython] Cython circular cdef import patch

Stefan Behnel stefan_ml at behnel.de
Wed Apr 9 17:48:17 CEST 2008


Hi,

Gary Furnish wrote:
> Can you produce a testcase for this issue?  It is *critical* for fast
> symbolics in Sage, so I would prefer to fix the bug as opposed to reverting.
> I see the problem now, but I will need the test cases you are using to
> produce a fix.  Once I have them it should be a relatively easy patch.

Here is a test case for the ordering bug (and a fix for the test runner). A
test for the header file generation is harder to write, as it requires
breaking out of the current "compile[-run]" test scheme into a
"compile-compile[-run]" scheme that builds a module against the previously
generated header file. I have currently no idea how to enable that in anything
but an ugly hackish way.

Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-case-for-cdef-extern-class-definitions.patch
Type: text/x-patch
Size: 2068 bytes
Desc: not available
Url : http://codespeak.net/pipermail/cython-dev/attachments/20080409/05bd687f/attachment.bin 


More information about the Cython-dev mailing list