Bugs item #817035, was opened at 2003-10-03 19:46
Message generated for change (Comment added) made by mhammond
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=817035&group_id=78018
Category: pythonwin
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Dominique de Waleffe (ddewaleffe)
Assigned to: Mark Hammond (mhammond)
Summary: Exception in browsing libraries (Tools->Browse PythonPath
Initial Comment:
Using the 2.3 distribution and the latest 159 release
of pythonwin.
I get the following traceback when I click on the + in
the library browser for xml.dom.minidom.
The problem also appears for other libraries displayed
in the tree view, but not for all...
PythonWin 2.3 (#46, Jul 29 2003, 18:54:32) [MSC v.1200
32 bit (Intel)] on win32.
Portions Copyright 1994-2001 Mark Hammond
(mha...@sk...) - see 'Help/About
PythonWin' for further copyright information.
>>> Traceback (most recent call last):
File
"C:\softs\python\lib\site-packages\Pythonwin\pywin\tools\hierlist.py",
line 123, in OnTreeItemExpanding
self.AddSubList(itemHandle, self.GetSubList(item))
File
"C:\softs\python\lib\site-packages\Pythonwin\pywin\tools\hierlist.py",
line 137, in AddSubList
self.AddItem(parentHandle, item)
File
"C:\softs\python\lib\site-packages\Pythonwin\pywin\tools\hierlist.py",
line 140, in AddItem
text = self.GetText(item)
File
"C:\softs\python\lib\site-packages\Pythonwin\pywin\tools\hierlist.py",
line 266, in GetText
return self.DelegateCall( item.GetText )
File
"C:\softs\python\lib\site-packages\Pythonwin\pywin\tools\hierlist.py",
line 255, in DelegateCall
return fn()
File
"C:\softs\python\lib\site-packages\Pythonwin\pywin\tools\browseProjects.py",
line 26, in GetText
return self.name + self.suffix
TypeError: unsupported operand type(s) for +:
'instance' and 'str'
win32ui: Exception in OnNotify() handler
----------------------------------------------------------------------
>Comment By: Mark Hammond (mhammond)
Date: 2004-07-13 15:30
Message:
Logged In: YES
user_id=14198
Checking in browseProjects.py;
new revision: 1.2; previous revision: 1.1
----------------------------------------------------------------------
Comment By: Dominique de Waleffe (ddewaleffe)
Date: 2004-05-13 20:29
Message:
Logged In: YES
user_id=214484
The fix proposed by dsuki works. I had thought it'd be
included but its not yet in V201.
It can probably be made into a single line change.
----------------------------------------------------------------------
Comment By: Maxim Sokolov (dzuki)
Date: 2004-01-29 09:45
Message:
Logged In: YES
user_id=264383
The problem is that self.name for module level functions
containes Function object and not string object.
I have pached it with:
lib\site-packages\Pythonwin\pywin\tools\browseProjects.py
line 26:
return self.name + self.suffix
changed to:
name = self.name
if not isinstance(self.name, type("")):
name = self.name.name
return name + self.suffix
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=817035&group_id=78018
|