New submission from Gregor <gregor.hochsch...@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@python
components: Documentation
messages: 159428
nosy: docs@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue14680>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to