Issue 14680: pydoc with -w option does not work for a lot of help topics (original) (raw)
Issue14680
Created on 2012-04-26 22:11 by gregor.hoch, last changed 2022-04-11 14:57 by admin.
Files | |||
---|---|---|---|
File name | Uploaded | Description | Edit |
pydoc.patch | sunfinite,2013-10-20 15:56 | -w now works for topics, keywords and symbols | review |
Messages (3) | ||
---|---|---|
msg159428 - (view) | Author: Gregor (gregor.hoch) | Date: 2012-04-26 22:11 |
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. | ||
msg162569 - (view) | Author: Éric Araujo (eric.araujo) * ![]() |
Date: 2012-06-10 01:20 |
Thanks for the report. Are you interested in making a patch? Also, could you tell if the bug happens in 3.2? | ||
msg200594 - (view) | Author: Sunny K (sunfinite) * | Date: 2013-10-20 15:56 |
This issue is present in 3.4 too. Added patch for 3.4. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:29 | admin | set | github: 58885 |
2013-10-20 15:56:23 | sunfinite | set | files: + pydoc.patchversions: + Python 3.4nosy: + sunfinitemessages: + keywords: + patch |
2012-06-10 01:21:00 | eric.araujo | set | assignee: docs@python -> components: + Library (Lib), - Documentationnosy: - docs@python |
2012-06-10 01:20:48 | eric.araujo | set | nosy: + eric.araujomessages: + stage: needs patch |
2012-04-26 22:11:11 | gregor.hoch | create |