#25 [Bug: 817035] Exception while browsing python path- Wont Fix

closed-fixed
nobody
None
5
2004-07-13
2004-01-28
Maxim Sokolov
No

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

Discussion

  • Maxim Sokolov
    Maxim Sokolov
    2004-01-28

    • summary: [817035] Exception while browsing python path --> [Bug: 817035] Exception while browsing python path
     
  • Maxim Sokolov
    Maxim Sokolov
    2004-01-28

    Logged In: YES
    user_id=264383

    Right formatting:

    name = self.name
    if not isinstance(self.name, type("")):
    name = self.name.name
    return name + self.suffix

     
  • Maxim Sokolov
    Maxim Sokolov
    2004-01-29

    • status: open --> open-wont-fix
     
  • Maxim Sokolov
    Maxim Sokolov
    2004-01-29

    • summary: [Bug: 817035] Exception while browsing python path --> [Bug: 817035] Exception while browsing python path- Wont Fix
     
  • Mark Hammond
    Mark Hammond
    2004-07-13

    • status: open-wont-fix --> closed-fixed
     
  • Mark Hammond
    Mark Hammond
    2004-07-13

    Logged In: YES
    user_id=14198

    I have fixed this - thanks!