• Stefan Behnel's avatar
    Instead of simply asserting that the error exit case and the success exit case... · dc41690a
    Stefan Behnel authored
    Instead of simply asserting that the error exit case and the success exit case of a nogil function are aligned, make sure they are before joining them back together.
    This is necessary because the error code path is more likely to require the GIL for cleanup operations than the success path – which is a good thing, actually, so we try to streamline the success case at the expense of more work on the error path.
    dc41690a
view_return_errors.pyx 1.31 KB