-
Notifications
You must be signed in to change notification settings - Fork 5k
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
The code causes the kernel to die due to infinite recursion #6687
Comments
Thanks for reporting @CoolPlayLin. A similar issue has previously been reported as well #2648. |
You probably didn't get what I mean |
After running the above code, Python will prompt an error, but Jupyter notebook is the kernel directly dead |
@CoolPlayLin Thank you for clarifying this issue. This issue has been accepted but no one is actively working on it at the moment. If you'd like to look into this issue, we'd welcome a pull request! |
I had this same issue. My code that caused it to crash: class Bug:
def __post_init__(self): # NOTE: Should be __init__
self._config = {"bug": True}
def __getattr__(self, name):
return self._config[name]
b = Bug()
b.bug Running this code in the Python interpreter gives the following:
Note that the following code, when run in a Jupyter Notebook, generates a recursion error as expected, without killing the kernel. def inf_rec():
inf_rec()
inf_rec() |
Any update? |
Describe the bug
A bug in the code caused the kernel to die
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: