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.

classification
Title: pydoc and properties
Type: Stage:
Components: Interpreter Core Versions: Python 2.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: tim.peters Nosy List: rengelink, tim.peters
Priority: normal Keywords:

Created on 2001-10-18 06:54 by rengelink, last changed 2022-04-10 16:04 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
props.py rengelink, 2001-10-18 06:54 module that chokes pydoc in server mode
Messages (3)
msg7030 - (view) Author: Roeland Rengelink (rengelink) Date: 2001-10-18 06:54
pydoc in server mode throws an error when parsing the
attached module. From the command line documentation is
shown correctly.

The problem seems to be in HTMLDoc.spillproperties().
Replacing:

base = self.document(func, name + tag, mod, funcs,
classes, mdict, object)

with:

base = self.document(func, name+tag, mod)

seems to solve this. This is also more in line with
TextDoc.spillproperties()

msg7031 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2001-10-18 16:25
Logged In: YES 
user_id=31435

Assigned to me.  The HTML flavor of .document() uses the 
extra arguments to figure out if any words in the generated 
docs should be turned into hyperlinks; that's irrelevant to 
the text-mode flavor; so, whatever the true cause, the 
correct cure probably isn't just to give up in HTML mode.
msg7032 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2001-10-18 19:59
Logged In: YES 
user_id=31435

Fixed in

Lib/pydoc.py; new revision: 1.55
Lib/test/pydocfodder.py; new revision: 1.3

simply by making GUI-mode .docother() ignore excess 
arguments.  Property functions are usually methods or 
functions, not arbitrary callables, so usually go 
thru .docroutine(), which wants all these 
arguments.  .docother() has no use for them, but shouldn't 
blow up just because its caller N levels back couldn't 
guess that .docother() would eventually get called.
History
Date User Action Args
2022-04-10 16:04:32adminsetgithub: 35348
2001-10-18 06:54:02rengelinkcreate