On 16 March 2011 13:01, mark florisson <markflorisso...@gmail.com> wrote:
>>> 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:'.
>

Attached a patch to disallow invalid directives in with statements. I
ran the test suite to ensure I didn't break anything.

Attachment: error_on_invalid_with_directives.patch
Description: Binary data

_______________________________________________
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel

Reply via email to