This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: pydoc.TextDoc raises for some kinds of objects
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: bob.ippolito, georg.brandl
Priority: normal Keywords:

Created on 2003-07-15 01:58 by bob.ippolito, last changed 2022-04-10 16:09 by admin. This issue is now closed.

Messages (2)
msg60353 - (view) Author: Bob Ippolito (bob.ippolito) * (Python committer) Date: 2003-07-15 01:58
TextDoc.spill calls inherited Doc.document(getattr(object, 
name), name, mod, object)
Doc.document builds args=(getattr(object, name), name, 
mod, object)
Doc.document calls TextDoc.docother(self, *args)
args[3] maps to maxlen=None in TextDoc.docother.. which 
expects it to be an integer (I think 70 in the other spill 
functions), but it's really just an arbitrary object.. so an 
exception gets thrown.

TextDoc.spill (line 1064) should be changed to call 
self.document(getattr(object, name), name, mod) instead, 
as the object is not appropriate to be used as maxlen.
msg61283 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-01-20 12:42
docother() was fixed in r39636 to accept the additional argument.
Date User Action Args
2022-04-10 16:09:58adminsetgithub: 38852
2008-01-20 12:42:47georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg61283
nosy: + georg.brandl
2003-07-15 01:58:10bob.ippolitocreate