[Cython] CEP1000: Native dispatch through callables

Dag Sverre Seljebotn d.s.seljebotn at astro.uio.no
Sat Apr 14 23:30:04 CEST 2012



Stefan Behnel <stefan_ml at behnel.de> wrote:

>mark florisson, 14.04.2012 23:00:
>> On 14 April 2012 20:08, Dag Sverre Seljebotn wrote:
>>>  * TBD: Information about GIL requirements (nogil, with gil?), how
>>>   exceptions are reported
>> 
>> Maybe that could be a separate list, to be consulted mostly for
>> explicit casts (I think PyErr_Occurred() would be the default for
>> non-object return types).
>
>Good idea. We could have an additional "flags" field for each signature
>(or
>maybe just each callable?) that would contain orthogonal information
>about
>exception handling and GIL requirements.

I don't think gil/nogil is orthogonal at all; I think you could export both versions as two different overloads (so that one can jump past gil-acquisition in with-gil-functions, etc)

Dag


>
>Stefan
>_______________________________________________
>cython-devel mailing list
>cython-devel at python.org
>http://mail.python.org/mailman/listinfo/cython-devel

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.


More information about the cython-devel mailing list