Python threads

Jesse Noller has an excellent post on Python Threads and the Global Interpreter Lock that is well worth a read.

I, in particular, liked the use of decorators to get the "synchronized" feature known from Java and the long discussion about the GIL.

I haven't used threads much in my own Python code — I usually split my scripts in separate processes to parallelise them on our cluster — so there were a lot in this post I didn't know about.

--

33-53=-20

Tags: , , ,

Comments are closed.