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
_______________________________________________
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel

Reply via email to