[Python-ideas] adding an __exec__ method to context managers?

Stefan Behnel stefan_ml at behnel.de
Tue Oct 13 10:39:11 CEST 2009

Sturla Molden wrote:
> I have been trying to implement an OpenMP-like threading API for Python.

This need has (obviously) also been discussed on the Cython list and lead
to this write-up:


and this ticket:


The fact that this isn't an easy thing to decide (nor a major need, it
seems) is reflected by the age of the Wiki page (June 2008, still
undecided) and the amount of similar discussions on c.l.py and

I actually think that OpenMP support makes a lot more sense for Cython code
(which can happily free the GIL at any granularity) than for Python code.


More information about the Python-ideas mailing list