Re: [Cython] Calling gil-requiring function not allowed without gil

2011-08-18 Thread Dag Sverre Seljebotn
On 08/18/2011 09:27 PM, Robert Bradshaw wrote: On Wed, Aug 17, 2011 at 11:39 PM, Dag Sverre Seljebotn wrote: On 08/17/2011 09:21 PM, Robert Bradshaw wrote: On Wed, Aug 17, 2011 at 11:46 AM, Dag Sverre Seljebotn wrote: On 08/17/2011 08:19 PM, Robert Bradshaw wrote: That's a nice idea.

Re: [Cython] What now?

2011-08-18 Thread Stefano Sanfilippo
Sounds really interesting to me. Thanks for your proposal :) I may have to dig the internals, so, first I'll study the Compiler code. --SKS ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel

Re: [Cython] What now?

2011-08-18 Thread Robert Bradshaw
On Wed, Aug 17, 2011 at 10:32 PM, Stefan Behnel wrote: > Stefano, 11.08.2011 16:24: >> >> now that I've nailed Cython code, I'd like to get into something more >> funny. >> Currently, I'm working on a set of macros to seamlessy integrate Cython >> into >> CMake build process (in fact, I love CMake

Re: [Cython] Calling gil-requiring function not allowed without gil

2011-08-18 Thread Robert Bradshaw
On Thu, Aug 18, 2011 at 12:27 PM, Robert Bradshaw wrote: > On Wed, Aug 17, 2011 at 11:39 PM, Dag Sverre Seljebotn > wrote: >> On 08/17/2011 09:21 PM, Robert Bradshaw wrote: >>> >>> On Wed, Aug 17, 2011 at 11:46 AM, Dag Sverre Seljebotn >>>  wrote: On 08/17/2011 08:19 PM, Robert Bradsha

Re: [Cython] Calling gil-requiring function not allowed without gil

2011-08-18 Thread Robert Bradshaw
On Wed, Aug 17, 2011 at 11:39 PM, Dag Sverre Seljebotn wrote: > On 08/17/2011 09:21 PM, Robert Bradshaw wrote: >> >> On Wed, Aug 17, 2011 at 11:46 AM, Dag Sverre Seljebotn >>  wrote: >>> >>> On 08/17/2011 08:19 PM, Robert Bradshaw wrote: That's a nice idea. I have to admit that all thes

Re: [Cython] Calling gil-requiring function not allowed without gil

2011-08-18 Thread Dag Sverre Seljebotn
On 08/18/2011 09:06 AM, Stefan Behnel wrote: Dag Sverre Seljebotn, 18.08.2011 08:39: The semantics are simple: For all cdef functions, if "nogil" could have been applied without a syntax error, then it gets automatically applied. The only time this isn't completely safe is when the GIL is inten

Re: [Cython] Calling gil-requiring function not allowed without gil

2011-08-18 Thread Stefan Behnel
Dag Sverre Seljebotn, 18.08.2011 08:39: The semantics are simple: For all cdef functions, if "nogil" could have been applied without a syntax error, then it gets automatically applied. The only time this isn't completely safe is when the GIL is intentionally being used as a lock. In which case