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.

Author nascheme
Recipients nascheme
Date 2016-12-08.19:24:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1481225069.67.0.983808754033.issue28908@psf.upfronthosting.co.za>
In-reply-to
Content
The getdocloc() method in pydoc.py is supposed to return the doc location for modules.  It uses a 'basedir' parameter that is supposed to point to the location of the standard library modules.

That logic is broken for a number of different scenarios, I think.  One is if you build Python in a sub-directory, not in the root of the source tree.  Another I think is if you are using a Zip file for the std lib.

Fixing this properly is not so easy.  One solution would be to explictly mark modules that have docs available.  E.g. create a __pydoc global variable or similar that the 'pydoc' module to inspect.  That would have to be done on every module that has documentation.

Another idea is at build time, crawl through Doc/library and generate a list of modules that have docs.  That's a bit tricky because that generation needs to work on all platforms that Python is built on.

A third idea is to manually add the list to the pydoc.py module.  When new documentation is created under Doc/library, that list would have to be updated.
History
Date User Action Args
2016-12-08 19:24:29naschemesetrecipients: + nascheme
2016-12-08 19:24:29naschemesetmessageid: <1481225069.67.0.983808754033.issue28908@psf.upfronthosting.co.za>
2016-12-08 19:24:29naschemelinkissue28908 messages
2016-12-08 19:24:29naschemecreate