[pywin32-bugs] [ pywin32-Bugs-817035 ] Exception in browsing libraries (Tools->Browse PythonPath)
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2004-01-29 04:58:41
|
Bugs item #817035, was opened at 2003-10-03 13:46 Message generated for change (Comment added) made by dzuki You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=817035&group_id=78018 Category: pythonwin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Dominique de Waleffe (ddewaleffe) Assigned to: Nobody/Anonymous (nobody) 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: Maxim Sokolov (dzuki) Date: 2004-01-29 01: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 |