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

SourceForge.net noreply@sourceforge.net
Fri, 27 Jun 2003 08:46:54 -0700


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

Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Geoff Talvola (gtalvola)
Assigned to: Skip Montanaro (montanaro)
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: Skip Montanaro (montanaro)
Date: 2003-06-27 10:46

Message:
Logged In: YES 
user_id=44345

Checked in as pydoc.py 1.86.


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

Comment By: Geoff Talvola (gtalvola)
Date: 2003-06-27 10:09

Message:
Logged In: YES 
user_id=88162

Assigning to Skip since he's done work with traceback code
before.  I'm hoping this gets into 2.3b2.  It's really a
no-brainer bugfix.


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

Comment By: Geoff Talvola (gtalvola)
Date: 2003-05-21 16: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