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

SourceForge.net noreply at sourceforge.net
Sat Sep 30 13:07:06 CEST 2006


Patches item #1560617, was opened at 2006-09-18 10:15
Message generated for change (Comment added) made by gbrandl
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: Closed
>Resolution: Fixed
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.

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

>Comment By: Georg Brandl (gbrandl)
Date: 2006-09-30 11:07

Message:
Logged In: YES 
user_id=849994

Thanks for the report, fixed in rev. 52069, 52070 (2.4),
52071 (2.5).

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

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