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
IDLE crashes when Stack Viewer opened #55278
Comments
This problem was asked about on Stack Overflow, where there's some more information on it: But I didn't see it listed as a bug here. I've also experienced it in Python 3.1.3 |
According to the StackOverflow report, the crash occurs on Python 3.1.2 with IDLE 3.1.2 on Windows 7. |
A few additional details: I'm also running Windows 7. Reproducing the crash is as simple as opening IDLE, typing, e.g., |
I don't get a crash, but it certainly doesn't work. Once IDLE is open I type "raise TypeError", then open the stack viewer as you did. Here's what I'm seeing: [WINSEVEN] 2011-01-29 21:05:30.18
Object: 49395136 Traceback (most recent call last):
File "c:\python31\lib\idlelib\rpc.py", line 188, in localcall
ret = method(*args, **kwargs)
File "c:\python31\lib\idlelib\RemoteObjectBrowser.py", line 21, in _GetSubList return list(map(remote_object_tree_item, list))
TypeError: 'list' object is not callable
Exception in Tkinter callback
Traceback (most recent call last):
File "c:\python31\lib\tkinter\__init__.py", line 1399, in __call__
return self.func(*args)
File "c:\python31\lib\idlelib\PyShell.py", line 1171, in open_stack_viewer
return self.interp.remote_stack_viewer()
File "c:\python31\lib\idlelib\PyShell.py", line 572, in remote_stack_viewer
node.expand()
File "c:\python31\lib\idlelib\TreeWidget.py", line 131, in expand
self.update()
File "c:\python31\lib\idlelib\TreeWidget.py", line 170, in update
self.draw(7, 2)
File "c:\python31\lib\idlelib\TreeWidget.py", line 184, in draw
sublist = self.item._GetSubList()
File "c:\python31\lib\idlelib\RemoteObjectBrowser.py", line 36, in _GetSubList
TypeError: 'NoneType' object is not iterable |
The following patch will fix it. Another example of why 'list' isn't a great name :) Index: Lib/idlelib/RemoteObjectBrowser.py def _GetSubList(self):
- list = self.__item._GetSubList()
- return list(map(remote_object_tree_item, list))
+ sub_list = self.__item._GetSubList()
+ return list(map(remote_object_tree_item, sub_list)) class StubObjectTreeItem:
# Lives in IDLE process |
Thanks, applied in r88258. |
This should be back-ported to the maintenance branch as well. I can take care of that if Georg is busy with release-related stuff. |
Please do. |
Fixed in release31-maint in r88269. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: