[ python-Bugs-1417598 ] EditorWindow demo causes attr-error

SourceForge.net noreply at sourceforge.net
Mon Jul 24 20:06:42 CEST 2006


Bugs item #1417598, was opened at 2006-01-28 16:16
Message generated for change (Comment added) made by kbk
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1417598&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: IDLE
Group: Python 2.4
>Status: Closed
>Resolution: Fixed
>Priority: 3
Submitted By: snowman (snow_k2)
>Assigned to: Kurt B. Kaiser (kbk)
Summary: EditorWindow demo causes attr-error

Initial Comment:
Running EditorWindow.py causes next error : 
>>>>>>>>>>
Traceback (most recent call last):
  File "C:\Python24\Lib\idlelib\EditorWindow.py", line 
1410, in -toplevel-
    test()
  File "C:\Python24\Lib\idlelib\EditorWindow.py", line 
1404, in test
    edit = EditorWindow(root=root, filename=filename)
  File "C:\Python24\Lib\idlelib\EditorWindow.py", line 
190, in __init__
    self.update_recent_files_list()
  File "C:\Python24\Lib\idlelib\EditorWindow.py", line 
602, in update_recent_files_list
    if self.top.hasattr('instance_dict'):
AttributeError: ListedToplevel instance has no 
attribute 'hasattr'
<<<<<<<

I think EditorWindow.update_recent_files_list() should
check the 'instance_dict' attribute existance before
accessing self.top.instance_dict.keys() in the def.

  if hasattr(self.top, 'instance_dict'):
    xxxxx
    xxxxx



----------------------------------------------------------------------

>Comment By: Kurt B. Kaiser (kbk)
Date: 2006-07-24 14:06

Message:
Logged In: YES 
user_id=149084

Rev 50805

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1417598&group_id=5470


More information about the Python-bugs-list mailing list