[pywin32-bugs] [ pywin32-Bugs-821684 ] function <def>s not working in module-browser pane
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2003-10-11 10:27:21
|
Bugs item #821684, was opened at 2003-10-11 11:27 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=821684&group_id=78018 Category: pythonwin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Tim Diggins (tdiggins) Assigned to: Nobody/Anonymous (nobody) Summary: function <def>s not working in module-browser pane Initial Comment: As of pythonwin 157 (at least on my version on Win2000), when you drag out the left-hand margin to show the module-browser pane (not sure of correct python win terminology here), the functions are no longer displayed, nor work correctly. Instead they just display <pyclbr.Function instance at ...> and double clicking on them gives status line "Can not locate the source code for this object". The reason for this is that pyclbr.Function used to be an subclass of pyclbr.Class but no longer is. Thus an attribute error is raised at the wrong point in pywin.framework.editor.ModuleBrowser.HierListCLBRClass (because a pyclbr.Function no longer has redundant attributes super and methods) A way to fix this is to mirror the change and give ModuleBrowser.HierListCLBRFunction its own __init__ and make it inherit directly from ModuleBrowser.HierListCLBRItem. I include a file with JUST the necessary changes (the redefinition of ModuleBrowser.HierListCLBRFunction). best Tim ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=821684&group_id=78018 |