[New-bugs-announce] [issue14680] pydoc with -w option does not work for a lot of help topics
Gregor
report at bugs.python.org
Fri Apr 27 00:11:12 CEST 2012
New submission from Gregor <gregor.hochschild at gmx.de>:
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.
----------
assignee: docs at python
components: Documentation
messages: 159428
nosy: docs at python, gregor.hoch
priority: normal
severity: normal
status: open
title: pydoc with -w option does not work for a lot of help topics
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14680>
_______________________________________
More information about the New-bugs-announce
mailing list