[Patches] [ python-Patches-672855 ] improve pydoc handling of extension types
SourceForge.net
noreply@sourceforge.net
Wed, 22 Jan 2003 17:05:38 -0800
Patches item #672855, was opened at 2003-01-22 20:05
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: Nobody/Anonymous (nobody)
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=672855&group_id=5470