On Fri, May 31, 2013 at 4:14 AM, Ana Marija Sokovic <sokovic.anamar...@gmail.com> wrote: > Hi, > > Can somebody explain to me how would you proceed in releasing the GIL and > whether you think it will have consequences?
You release the GIL in C-level code when you don't need to work with Python objects for a while. Simple example is when you need to wait for something - for instance, if you attempt to read from a pipe, you can release the GIL before reading, then reacquire it afterward. The consequence is that you can't do anything with Python objects till you reacquire it. It's like any other resource-guarding mutex lock. ChrisA -- http://mail.python.org/mailman/listinfo/python-list