[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-19 08:17:27
|
Bugs item #821684, was opened at 2003-10-11 11:27 Message generated for change (Comment added) made by tdiggins 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: Duplicate 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 ---------------------------------------------------------------------- >Comment By: Tim Diggins (tdiggins) Date: 2003-10-17 09:37 Message: Logged In: YES user_id=263040 Oops - this is the same as #794193. I should have added my comments there. The code already submitted addresses comments by Christopher J. Prinos (cprinos) to that bug. https://sourceforge.net/tracker/? func=detail&atid=551954&aid=794193&group_id=78018 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=821684&group_id=78018 |