[yt-dev] print statements in cython

Matthew Turk matthewturk at gmail.com
Sat Jul 5 05:17:04 PDT 2014


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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20140705/c87be835/attachment.html>


More information about the yt-dev mailing list