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 gregor.hoch
Recipients docs@python, gregor.hoch
Date 2012-04-26.22:11:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335478272.08.0.215124599111.issue14680@psf.upfronthosting.co.za>
In-reply-to
Content
pydoc with pydoc with -w option (to write html files) does not work for a lot of help topics (e.g. EXPRESSIONS, FORMATTING, TUPLELITERALS, def, if, else...)
If you look at the source you can see that when using the switch '-w' (http://hg.python.org/cpython/file/2.7/Lib/pydoc.py#l2311) pydoc uses the function writedoc, otherwise to the class Helper (http://hg.python.org/cpython/file/2.7/Lib/pydoc.py#l2325). In the Helper-class EXPRESSIONS is defined under line 1666 (http://hg.python.org/cpython/file/2.7/Lib/pydoc.py#l1666). The function writedoc does not utilize this nor does it use the Helper class.

For dicussion see: http://stackoverflow.com/a/10333615/1318686

Example:
pydoc EXPRESSIONS 
works perfectly fine but 
pydoc -w EXPRESSIONS 
does not.
History
Date User Action Args
2012-04-26 22:11:12gregor.hochsetrecipients: + gregor.hoch, docs@python
2012-04-26 22:11:12gregor.hochsetmessageid: <1335478272.08.0.215124599111.issue14680@psf.upfronthosting.co.za>
2012-04-26 22:11:11gregor.hochlinkissue14680 messages
2012-04-26 22:11:11gregor.hochcreate