[Patches] [ python-Patches-672855 ] improve pydoc handling of extension types

SourceForge.net noreply@sourceforge.net
Wed, 21 May 2003 14:02:29 -0700


Patches item #672855, was opened at 2003-01-22 20:05
Message generated for change (Comment added) made by gtalvola
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=672855&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Geoff Talvola (gtalvola)
Assigned to: Ka-Ping Yee (ping)
Summary: improve pydoc handling of extension types

Initial Comment:
pydoc.HTMLRepr.repr1() generates an exception if you
pass in an object x where type(x) has no __name__
attribute.  The attached patch adds a test for this
case and keeps repr1 from barfing.

This is useful on Windows if you're using cgitb.py to
try to get tracebacks that involve COM objects --
somewhere in the guts of the COM support code you get a
type that has no __name__ attribute.


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

>Comment By: Geoff Talvola (gtalvola)
Date: 2003-05-21 17:02

Message:
Logged In: YES 
user_id=88162

I'm uploading an improved version of this patch that fixes
both the Text and HTML versions of the traceback.  The
previous patch only fixed the HTML version.

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

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