Dag Sverre Seljebotn wrote: > def f(): > with nogil: > for ...: > A > if something_exceptional: > with gil: > raise Exception(...) > B > C If that's to be supported, the following really ought to be supported as well: def f(): with nogil: try: ... with gil: raise Exception() finally: ...do some cleanup... -- Greg