-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
try/except and try/finally in nopython mode #2097
Comments
Any updates on this? |
None so far. You can raise an exception in nopython mode with static arguments and it will propagate out to the Python interpreter. |
I don't think we'll see this by Numba 1.0. |
Basic support for try/except was implemented in #4902 for version 0.47.0 |
Not sure when it was added, but the construct appears to work on current from numba import njit
@njit
def foo():
try:
x = 1
raise Exception
except Exception:
pass
finally:
x += 1
return x
print(foo())
Hence I am closing this issue as the functionality requested has been implemented. |
No description provided.
The text was updated successfully, but these errors were encountered: