[yt-dev] print statements in cython

Britton Smith brittonsmith at gmail.com
Sat Jul 5 05:50:11 PDT 2014


Thanks Matt, that worked!


On Sat, Jul 5, 2014 at 1:17 PM, Matthew Turk <matthewturk at gmail.com> wrote:

> Hi Britton,
>
> You can do this to get around it:
>
> with gil:
>     print ...
>
> Matt
> On Jul 5, 2014 7:01 AM, "Britton Smith" <brittonsmith at gmail.com> wrote:
>
>> Hey yt-devs,
>>
>> I'm trying to debug some Cython routines and want to throw in some print
>> statements.  However, when adding a simple python print statement I get the
>> following compile error:
>>
>> Python print statement not allowed without gil
>>
>> Is there other way to do this here?  Any other Cython debugging tips
>> people have would also be very welcome.
>>
>> Britton
>>
>> _______________________________________________
>> yt-dev mailing list
>> yt-dev at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>>
>>
> _______________________________________________
> yt-dev mailing list
> yt-dev at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20140705/735d1d75/attachment.htm>


More information about the yt-dev mailing list