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
Crash upon tab-completion when there's a non-subscriptable key in globals() #4861
Comments
|
There are all kinds of ways to do horrible things that will crash IPython, or make Python in general unusable. How did you come across this particular case? I doubt it's worth protecting against it. |
It happened by accident quite deep in a long-lived ipython session, assigning a key in a dictionary not realising it was pointing to |
It no longer crashes, but you still see a traceback. I think it's valid to say that IPython should be nice about this, so I'm leaving the issue open but giving it the lowest priority. |
When I commit a serious crime, I can crash ipython. The crime is:
globals()[0]=0
. The problem is illustrated below:Then follows the attached traceback, ultimately leading to
TypeError: 'int' object is not subscriptable
.The text was updated successfully, but these errors were encountered: