[Patches] [ python-Patches-1560617 ] pyclbr reports different module for Class and Function

SourceForge.net noreply at sourceforge.net
Mon Sep 18 12:15:40 CEST 2006


Patches item #1560617, was opened at 2006-09-18 10:15
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1560617&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Peter Otten (potten)
Assigned to: Nobody/Anonymous (nobody)
Summary: pyclbr reports different module for Class and Function

Initial Comment:
Starting with Python 2.4 pyclbr gives the qualified
module name, but only for classes, not functions:

>>> import pyclbr
>>> for obj in
pyclbr.readmodule_ex("test.test_pyclbr").values():
...     print ["func", "class"][isinstance(obj,
pyclbr.Class)], obj.name, obj.module
...
func test_main test_pyclbr
class PyclbrTest test.test_pyclbr

The fix is simple, see attached diffs.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1560617&group_id=5470


More information about the Patches mailing list