Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #46523 > unrolled thread

Python and GIL

Started byAna Marija Sokovic <sokovic.anamarija@gmail.com>
First post2013-05-30 18:14 +0000
Last post2013-05-30 19:41 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  Python and GIL Ana Marija Sokovic <sokovic.anamarija@gmail.com> - 2013-05-30 18:14 +0000
    Re: Python and GIL Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-05-30 19:41 +0000

#46523 — Python and GIL

FromAna Marija Sokovic <sokovic.anamarija@gmail.com>
Date2013-05-30 18:14 +0000
SubjectPython and GIL
Message-ID<mailman.2440.1369938013.3114.python-list@python.org>
Hi,

Can somebody explain to me how would you proceed in releasing the GIL and
whether you think it will have consequences?

Thanks
Ana

[toc] | [next] | [standalone]


#46539

FromSteven D'Aprano <steve+comp.lang.python@pearwood.info>
Date2013-05-30 19:41 +0000
Message-ID<51a7ab53$0$29966$c3e8da3$5496439d@news.astraweb.com>
In reply to#46523
On Thu, 30 May 2013 18:14:36 +0000, Ana Marija Sokovic wrote:

> Hi,
> 
> Can somebody explain to me how would you proceed in releasing the GIL
> and whether you think it will have consequences?

In pure Python code, you don't need to worry about the GIL, and in fact 
you cannot control it. Python controls it.

You only need to release the GIL when writing C extensions. 


-- 
Steven

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web