[Python-checkins] r86964 - in python/branches/py3k: Lib/pydoc.py Misc/NEWS

georg.brandl python-checkins at python.org
Fri Dec 3 10:58:38 CET 2010


Author: georg.brandl
Date: Fri Dec  3 10:58:38 2010
New Revision: 86964

Log:
#10549: fix interface of docclass() for text documenter.

Modified:
   python/branches/py3k/Lib/pydoc.py
   python/branches/py3k/Misc/NEWS

Modified: python/branches/py3k/Lib/pydoc.py
==============================================================================
--- python/branches/py3k/Lib/pydoc.py	(original)
+++ python/branches/py3k/Lib/pydoc.py	Fri Dec  3 10:58:38 2010
@@ -1132,7 +1132,7 @@
         result = result + self.section('FILE', file)
         return result
 
-    def docclass(self, object, name=None, mod=None):
+    def docclass(self, object, name=None, mod=None, *ignored):
         """Produce text documentation for a given class object."""
         realname = object.__name__
         name = name or realname

Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS	(original)
+++ python/branches/py3k/Misc/NEWS	Fri Dec  3 10:58:38 2010
@@ -33,6 +33,8 @@
 Library
 -------
 
+- Issue #10549: Fix pydoc traceback when text-documenting certain classes.
+
 - Issue #2001: New HTML server with enhanced Web page features.  Patch by Ron
   Adam.
 


More information about the Python-checkins mailing list