On 24 September 2010 07:37, Stephane DROUARD <[email protected]> wrote: > Lisandro Dalcin wrote: > >> Any chance you could help us by writing a comprehensive testcase to >> speedup the resolution of this issue? > > It depends what you really expect. > > I assume you already have tests which exercise the 'except' clause. > So for me we only have to duplicate those tests declaring/adapting the C > functions as 'nogil' and calling them "with nogil". > Do you agree? > > If so, I may consider doing the porting of those tests. >
Yes, I'm talking about you writing a test_except_nogil.pyx with Cython code, probably using cdef extern from to include a header where you can write foo(int i), bar(int i), these functions throwing C++ exceptions if i!=0, otherwise they do nothing > How can we proceed? > Ideally, if you could send me the tests of the except clause (source, build, > check, ...) I can modify them and sent them back to you to integrate into > your database. > Take a look at tests/run/cpp_exceptions.pyx, specially at test_int_raw(). Your test is going to be a bit different, because you are going to use nogil functions raising C++ exceptions. -- Lisandro Dalcin --------------- CIMEC (INTEC/CONICET-UNL) Predio CONICET-Santa Fe Colectora RN 168 Km 472, Paraje El Pozo Tel: +54-342-4511594 (ext 1011) Tel/Fax: +54-342-4511169 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
