[Idle-dev] [ idlefork-Bugs-667787 ] crash in class browser (Python 2.3)

SourceForge.net noreply@sourceforge.net
Sun, 19 Jan 2003 20:53:30 -0800


Bugs item #667787, was opened at 2003-01-14 10:41
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109579&aid=667787&group_id=9579

Category: None
Group: None
Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Guido van Rossum (gvanrossum)
>Assigned to: Kurt B. Kaiser (kbk)
Summary: crash in class browser (Python 2.3)

Initial Comment:
I have installed idlefork form CVS with Python 2.3.

Whenever I open the class browser I get this traceback:

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/local/lib/python2.3/lib-tk/Tkinter.py",
line 1306, in __call__
    return apply(self.func, args)
  File
"/usr/local/lib/python2.3/site-packages/idlelib/EditorWindow.py",
line 42
4, in open_class_browser
    ClassBrowser.ClassBrowser(self.flist, base, [head])
  File
"/usr/local/lib/python2.3/site-packages/idlelib/ClassBrowser.py",
line 28
, in __init__
    self.init(flist)
  File
"/usr/local/lib/python2.3/site-packages/idlelib/ClassBrowser.py",
line 50
, in init
    node.expand()
  File
"/usr/local/lib/python2.3/site-packages/idlelib/TreeWidget.py",
line 131,
 in expand
    self.update()
  File
"/usr/local/lib/python2.3/site-packages/idlelib/TreeWidget.py",
line 170,
 in update
    self.draw(7, 2)
  File
"/usr/local/lib/python2.3/site-packages/idlelib/TreeWidget.py",
line 184,
 in draw
    sublist = self.item._GetSubList()
  File
"/usr/local/lib/python2.3/site-packages/idlelib/TreeWidget.py",
line 337,
 in _GetSubList
    sublist = self.GetSubList()
  File
"/usr/local/lib/python2.3/site-packages/idlelib/ClassBrowser.py",
line 72
, in GetSubList
    for name in self.listclasses():
  File
"/usr/local/lib/python2.3/site-packages/idlelib/ClassBrowser.py",
line 10
1, in listclasses
    if cl.super:
AttributeError: Function instance has no attribute 'super'

Python 2.2 seems fine.


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

>Comment By: Kurt B. Kaiser (kbk)
Date: 2003-01-19 23:53

Message:
Logged In: YES 
user_id=149084

Fixed some more.  ClassBrowser.py Rev 1.7

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

Comment By: Raymond Hettinger (rhettinger)
Date: 2003-01-18 21:44

Message:
Logged In: YES 
user_id=80475

Fixed.
See ClassBrowser.py 1.6

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

Comment By: Kurt B. Kaiser (kbk)
Date: 2003-01-14 13:13

Message:
Logged In: YES 
user_id=149084

Confirmed, also seen in Python IDLE.  

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

Comment By: Guido van Rossum (gvanrossum)
Date: 2003-01-14 10:42

Message:
Logged In: YES 
user_id=6380

Changed my mind about the priority, since we want idlefork
to be merged into Python 2.3...

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109579&aid=667787&group_id=9579