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

Stefan Behnel stefan_ml at behnel.de
Tue Oct 13 16:55:38 CEST 2009

Sturla Molden wrote:
> Stefan Behnel skrev:
>> 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.
> I am not talking about OpenMP support, I am talking about how we use
> Python threads.

Fine. Same Syntax proposals apply.

> Another use case, BTW, which someone mailed me, is an improved sandbox
> for restricted execution.

I would really prefer if this was based on a function rather than an
arbitrary code block.


More information about the Python-ideas mailing list