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
basic support for try except #4902
Conversation
raise exception inside a try-block
New tests in test_try_except.py
Unexpectedly fixed test_closure4 usecases.
|
now has conflict with master |
# Conflicts: # numba/rewrites/static_raise.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix-ups, couple of typo's else good to go.
Co-Authored-By: stuartarchibald <stuartarchibald@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work on this, great to see this feature added!
🎉 |
i tried the code above :
in numba version 0.47 and 0.48 and it still throws me error : "UnsupportedError: Failed in nopython mode pipeline (step: analyzing bytecode) how to solve this issue? |
@mobassir94 I just tried the snippet you suggested on the current Numba master |
@esc which one?
and it didn't work at all in kaggle kernel another code that i was trying is this one :
and the error comes for this line of code : lang = detect(df_train_full.comment_text[i]) |
@mobassir94 thanks for following up. We appreciate your input in this matter. I am not sure what you mean "it didn't work at all in kaggle kernel"?! I just tried it again locally:
As you can see I am not receiving any error message. Perhaps you could submit the full backtrace of the exception? Also, what Python version are you using? As can be seen on https://pypi.org/project/numba/ Numba only supports Pythonn 3.6 and later. As for the issues with Effectively this means you can not use |
@mobassir94 Could you please open an issue for further discussion please? It will also be helpful for you to report the numba version used in the Kaggle kernel, i.e. |
Hello! I run:
It gives:
I have Thank you! |
Implements #4898 (comment)