[Cython] 'with gil:' statement

mark florisson markflorisson88 at gmail.com
Wed Mar 16 13:01:04 CET 2011


>> Another feedback is that I wonder whether we should put the "gil" and
>> "nogil" psuedo-context managers both in cython namespace, and sort of
>> deprecate the "global" nogil, rather than introduce yet another name that
>> can't be used safely for all kinds of variables.
>
> Hmm, good catch. Actually, 'with cython.nogil:' is already possible,
> but cython.gil isn't (in fact, 'with cython.somethingrandom:' seems to
> simply be ignored).
> So I guess I'll have to fix that :)
>

I attached a patch for 'with cython.gil:'.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: with_cython.gil_statement.patch
Type: application/octet-stream
Size: 1379 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cython-devel/attachments/20110316/ca154dde/attachment.obj>


More information about the cython-devel mailing list