[Cython] Cython 0.15 release candidate

Christoph Gohlke cgohlke at uci.edu
Fri Jul 22 04:43:52 CEST 2011



On 7/21/2011 4:14 PM, Robert Bradshaw wrote:
> Cython has seen an enormous amount of development since 0.14.1. If you
> are not already using the latest version from the development
> repository, we encourage you to try out the release candidate:
> http://cython.org/release/Cython-0.15rc0.tar.gz
>
> - Robert

Hi,

I get a test error on Windows with msvc9 due to the "with gil" statement 
producing invalid C code (at least for msvc9). Below is the offending 
code in with_gil.c. Moving the declaration of the __pyx_gilstate_save 
variable a couple of lines up fixes this. A patch is attached.

Christoph


         /* "with_gil.pyx":347
  *                 raise Exception("This will be overridden")
  *         finally:
  *             with gil:             # <<<<<<<<<<<<<<
  *                 raise Exception("Override exception!")
  *
  */
         /*finally:*/ {
           int __pyx_why;
           PyObject *__pyx_exc_type, *__pyx_exc_value, *__pyx_exc_tb;
           int __pyx_exc_lineno;
           __pyx_exc_type = 0; __pyx_exc_value = 0; __pyx_exc_tb = 0; 
__pyx_exc_lineno = 0;
           #ifdef WITH_THREAD
           PyGILState_STATE __pyx_gilstate_save;
           #endif
           __pyx_why = 0; goto __pyx_L10;
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: with_gil.diff
URL: <http://mail.python.org/pipermail/cython-devel/attachments/20110721/c5af26cf/attachment.ksh>


More information about the cython-devel mailing list