summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
Commit message (Collapse)AuthorAgeFilesLines
* #14638: pydoc now treats non-str __name__ as None instead of raisingR David Murray2012-04-231-1/+2
| | | | Original patch by Peter Otten.
* #14434: make tutorial link in 'help' banner version-specificR David Murray2012-03-311-2/+2
| | | | | | | Without this fix, both 2.7 and 3.x would always point to the "current" docs...which means that before this fix python 3.2 'help' pointed to the 2.7 tutorial, and without this fix when we switch over to the 3.x docs being current, 2.7 would have pointed to the python3 tutorial.
* Issue #1785: Fix inspect and pydoc with misbehaving descriptors.Antoine Pitrou2011-12-211-5/+24
| | | | Also fixes issue #13581: `help(type)` wouldn't display anything.
* Issue #7425: Prevent pydoc -k failures due to module import errors.Ned Deily2011-10-061-5/+6
| | | | (Backport to 2.7 of existing 3.x fix)
* Make “pydoc somebuiltin.somemethod” work (#8887)Éric Araujo2011-07-291-6/+7
|
* Fix closes Issue11439 - Handle the SVN Keywords in 2.7 by replacing them ↵Senthil Kumaran2011-07-281-1/+1
| | | | with a high number so that code relying on them does not break.
* - Issue #12603: Fix pydoc.synopsis() on files with non-negative st_mtime.Charles-François Natali2011-07-271-2/+2
|
* Close #12182: Fix pydoc.HTMLDoc.multicolumn() if Python uses the new (true)Victor Stinner2011-05-261-2/+2
| | | | division (python -Qnew). Patch written by Ralf W. Grosse-Kunstleve.
* Issue #11666: Teach pydoc to display full help for named tuplesRaymond Hettinger2011-03-251-9/+12
|
* Merged revisions ↵Georg Brandl2011-02-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 86881,86887,86913-86915,86933,86943,86960,86964,86974,86980,86996,87008 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86881 | georg.brandl | 2010-11-30 08:43:28 +0100 (Di, 30 Nov 2010) | 1 line #10584: fix bad links. ........ r86887 | georg.brandl | 2010-11-30 15:57:54 +0100 (Di, 30 Nov 2010) | 1 line Fix typo. ........ r86913 | georg.brandl | 2010-12-01 16:32:43 +0100 (Mi, 01 Dez 2010) | 1 line Add missing word, and add a better reference to the actual function. ........ r86914 | georg.brandl | 2010-12-01 16:36:33 +0100 (Mi, 01 Dez 2010) | 1 line #10594: fix parameter names in PyList API docs. ........ r86915 | georg.brandl | 2010-12-01 16:44:25 +0100 (Mi, 01 Dez 2010) | 1 line Fix some markup and style in the unittest docs. ........ r86933 | georg.brandl | 2010-12-02 19:02:01 +0100 (Do, 02 Dez 2010) | 1 line #10597: fix Py_SetPythonHome docs by pointing to where the meaning of PYTHONHOME is already documented. ........ r86943 | georg.brandl | 2010-12-02 23:35:25 +0100 (Do, 02 Dez 2010) | 1 line Re-add accidentally removed line. ........ r86960 | georg.brandl | 2010-12-03 08:55:44 +0100 (Fr, 03 Dez 2010) | 1 line #10360: catch TypeError in WeakSet.__contains__, just like WeakKeyDictionary does. ........ r86964 | georg.brandl | 2010-12-03 10:58:38 +0100 (Fr, 03 Dez 2010) | 1 line #10549: fix interface of docclass() for text documenter. ........ r86974 | georg.brandl | 2010-12-03 16:30:09 +0100 (Fr, 03 Dez 2010) | 1 line Markup consistency fixes. ........ r86980 | georg.brandl | 2010-12-03 18:19:27 +0100 (Fr, 03 Dez 2010) | 1 line Fix punctuation. ........ r86996 | georg.brandl | 2010-12-03 20:56:42 +0100 (Fr, 03 Dez 2010) | 1 line Fix indentation. ........ r87008 | georg.brandl | 2010-12-04 10:04:04 +0100 (Sa, 04 Dez 2010) | 1 line Fix typo. ........
* Merged revisions 82547 via svnmerge fromAlexander Belopolsky2011-01-111-2/+3
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82547 | alexander.belopolsky | 2010-07-04 13:00:20 -0400 (Sun, 04 Jul 2010) | 3 lines Issue #9118: help(None) will now return NoneType doc instead of starting interactive help. ........
* Merged revisions 84173 via svnmerge fromSenthil Kumaran2010-08-181-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84173 | senthil.kumaran | 2010-08-19 01:02:21 +0530 (Thu, 19 Aug 2010) | 3 lines Fix Issue672656 - Securing pydoc server. ........
* Merged revisions 83370,83372-83374,83384 via svnmerge fromGeorg Brandl2010-08-011-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83370 | georg.brandl | 2010-07-31 23:51:48 +0200 (Sa, 31 Jul 2010) | 5 lines #8198: the Helper class should not save the stdin and stdout objects at import time, rather by default use the current streams like the other APIs that output help. ........ r83372 | georg.brandl | 2010-08-01 00:05:54 +0200 (So, 01 Aug 2010) | 1 line #4007: remove *.a and *.so.X.Y files in "make clean". ........ r83373 | georg.brandl | 2010-08-01 00:11:11 +0200 (So, 01 Aug 2010) | 1 line #5147: revert accidental indentation of header constant for MozillaCookieJar. ........ r83374 | georg.brandl | 2010-08-01 00:32:52 +0200 (So, 01 Aug 2010) | 1 line #5146: handle UID THREAD command correctly. ........ r83384 | georg.brandl | 2010-08-01 08:32:55 +0200 (So, 01 Aug 2010) | 1 line Build properties using lambdas. This makes test_pyclbr pass again, because it does not think that input and output are methods anymore. ........
* In a number of places code still reversRonald Oussoren2010-05-051-5/+1
| | | | | | | | | to "sys.platform == 'mac'" and that is dead code because it refers to a platform that is no longer supported (and hasn't been supported for several releases). Fixes issue #7908 for the trunk.
* Fix a test_pydoc failure on Neal Norwitz's buildbot.Brian Curtin2010-04-011-1/+1
|
* Correct what was intended to be a single-tuple to just be a != check.Brian Curtin2010-03-311-1/+1
| | | | Thanks to Éric Araujo for noticing that.
* Fix #8225. xml.etree was displaying an incorrect link when viewed in help.Brian Curtin2010-03-311-1/+2
|
* #7930: fix stripidEzio Melotti2010-02-161-3/+1
|
* Issue #7328: don't corrupt sys.path when running pydoc with the -m switchNick Coghlan2009-11-151-5/+7
|
* Fix issue 5230 by having pydoc's safeimport check to see if the importR. David Murray2009-06-231-3/+4
| | | | | error was thrown from itself in order to decide if the module can't be found. Thanks to Lucas Prado Melo for collaborating on the fix and tests.
* fix issue #6121 by stripping spaces from the argument in the 'help'R. David Murray2009-05-271-0/+1
| | | | function.
* Move pydoc_topics module to its own subdirectory, so that no generated code ↵Georg Brandl2009-04-261-5/+5
| | | | is in Lib/.
* #5698: Fix casing of !DOCTYPE to conform to W3C specs.Georg Brandl2009-04-101-1/+1
|
* Patch #4739 by David Laban: add symbols to pydoc help topics,Georg Brandl2008-12-271-2/+55
| | | | so that ``help('@')`` works as expected.
* #3707: fix inf. recursion in pydoc topic search. Rev'd by Antoine.Georg Brandl2008-08-301-3/+3
|
* Silence SyntaxWarning and DeprecationWarning in pydoc triggered by tupleBrett Cannon2008-08-031-10/+15
| | | | unpacking in parameter lists and using callable(). Found through -3.
* #3045: fix pydoc behavior for TEMP path with spaces.Georg Brandl2008-07-161-2/+2
|
* Issue 3190: pydoc now hides module __package__ attributesNick Coghlan2008-07-021-2/+3
|
* Generate pydoc's topic help from the reST docs via Sphinx'Georg Brandl2008-06-011-136/+125
| | | | new text writer.
* Revert the renaming of repr to reprlib.Brett Cannon2008-05-231-1/+1
|
* Tkinter rename reversal: remove tkinter package, adapt imports and docs.Georg Brandl2008-05-201-16/+16
|
* Tkinter rename, step 2: fix imports and add stub modules.Georg Brandl2008-05-161-16/+16
|
* Changed references to the reprlib module to use its new name.Alexandre Vassalotti2008-05-161-1/+1
|
* #2133: fix HTML color spec.Georg Brandl2008-02-171-1/+1
|
* Update PEP URL.Andrew M. Kuchling2008-02-051-1/+1
| | | | | | | (This code is duplicated between pydoc and DocXMLRPCServer; maybe it should be refactored as a GHOP project.) 2.5.2 backport candidate.
* Remove effectless expression statement.Georg Brandl2008-01-271-1/+0
|
* #1715: include sub-extension modules in pydoc text output.Georg Brandl2008-01-211-1/+13
|
* Adapt pydoc to new doc URLs.Georg Brandl2008-01-211-7/+6
|
* Check in the patch proposed by Ben Hayden (benjhayden) for issueKa-Ping Yee2008-01-131-3/+5
| | | | | | | | | #1550: help('modules') broken by several 3rd party libraries. Tested with Python build: trunk:54235:59936M -- the reported error occurs with Django installed (or with any __init__.py present on the path that raises an exception), and such errors indeed go away when this change is applied.
* Patch #1194449: correctly detect unbound methods in pydoc.Georg Brandl2007-03-131-2/+2
|
* Patch #1530482: add pydoc.render_doc() which returns the documentationGeorg Brandl2007-03-131-22/+26
| | | | for a thing instead of paging it to stdout, which pydoc.doc() does.
* Patch #1542681: add entries for "with", "as" and "CONTEXTMANAGERS" toGeorg Brandl2007-03-131-0/+3
| | | | pydoc's help keywords.
* Bug #1628895: some better tries to find HTML documentation in pydoc.Georg Brandl2007-03-021-7/+12
|
* Handle old-style instances more gracefully (display documentation onKa-Ping Yee2007-01-141-6/+13
| | | | the relevant class instead of documentation on <type 'instance'>).
* [Patch #1600491 from Jim Jewett] Describe how to build help files on WindowsAndrew M. Kuchling2006-12-191-0/+3
|
* Patch #1520294: Support for getset and member descriptors in types.py,Barry Warsaw2006-07-271-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | inspect.py, and pydoc.py. Specifically, this allows for querying the type of an object against these built-in C types and more importantly, for getting their docstrings printed in the interactive interpreter's help() function. This patch includes a new built-in module called _types which provides definitions of getset and member descriptors for use by the types.py module. These types are exposed as types.GetSetDescriptorType and types.MemberDescriptorType. Query functions are provided as inspect.isgetsetdescriptor() and inspect.ismemberdescriptor(). The implementations of these are robust enough to work with Python implementations other than CPython, which may not have these fundamental types. The patch also includes documentation and test suite updates. I commit these changes now under these guiding principles: 1. Silence is assent. The release manager has not said "no", and of the few people that cared enough to respond to the thread, the worst vote was "0". 2. It's easier to ask for forgiveness than permission. 3. It's so dang easy to revert stuff in svn, that you could view this as a forcing function. :) Windows build patches will follow.
* Second phase of refactoring for runpy, pkgutil, pydoc, and setuptoolsPhillip J. Eby2006-04-181-109/+73
| | | | | | | | | | | | | | | | | | | | to share common PEP 302 support code, as described here: http://mail.python.org/pipermail/python-dev/2006-April/063724.html pydoc now supports PEP 302 importers, by way of utility functions in pkgutil, such as 'walk_packages()'. It will properly document modules that are in zip files, and is backward compatible to Python 2.3 (setuptools installs for Python <2.5 will bundle it so pydoc doesn't break when used with eggs.) What has not changed is that pydoc command line options do not support zip paths or other importer paths, and the webserver index does not support sys.meta_path. Those are probably okay as limitations. Tasks remaining: write docs and Misc/NEWS for pkgutil/pydoc changes, and update setuptools to use pkgutil wherever possible, then add it to the stdlib.
* Fix pydoc.synopsis() so that it doesn't error out with an unreadableGeorg Brandl2006-03-081-1/+5
| | | | module.
* The names of lambda functions are now properly displayed in pydoc.Georg Brandl2006-02-171-1/+1
|
* Fix SF bug #417833 (pydoc HTTP reload failure) by removing fromKa-Ping Yee2005-11-051-13/+17
| | | | | sys.modules all submodules of a the given module/package path when trying to reload a module.