summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Accept patch to resolve SF bug #651124.Ka-Ping Yee2005-11-051-2/+2
|
* fix typos, mostly in commentsFred Drake2005-10-281-1/+1
|
* Merge ast-branch to headJeremy Hylton2005-10-201-0/+1
| | | | | | | | | | This change implements a new bytecode compiler, based on a transformation of the parse tree to an abstract syntax defined in Parser/Python.asdl. The compiler implementation is not complete, but it is in stable enough shape to run the entire test suite excepting two disabled tests.
* bug [ 729103 ] Cannot retrieve name of super objectGeorg Brandl2005-10-011-3/+3
|
* That was one too much.Georg Brandl2005-07-221-1/+1
|
* Fix all wrong instances of "it's".Georg Brandl2005-07-221-1/+1
|
* Use getdoc(object) instead of object.__doc__ to fix indentation problems.Ka-Ping Yee2005-02-191-2/+10
| | | | | | | | | | | Thanks to Robert Dick <dickrp@ece.northwestern.edu> for reporting this bug and submitting a patch. Adjust doc(object) to display useful documentation for plain values (e.g. help([]) now shows the methods on the list instead of just printing "[]"). (This change has been tested interactively, by generating docs for the standard library, and by running the module documentation webserver.)
* Replace list of constants with tuples of constants.Raymond Hettinger2005-02-061-9/+9
|
* Patch #936774: unify the display of data descriptors, including slots,Johannes Gijsbers2005-01-081-37/+27
| | | | | | | | | | | | | | | properties, and custom descriptors. * removed special handling of properties * added special handling of data descriptors - All data descriptors are grouped together in a section. For each item, the attribute name and doc string, if present, is displayed. * disabled display of __slots__ attribute - since slots are descriptors, they are listed in the section described above Thanks to John Belmonte for the patch!
* SF patch #1094007: Remove witty comment in pydoc.pyRaymond Hettinger2005-01-011-2/+1
| | | | (Removed at Ping's request.)
* Back out rev 1.96; see #1009389.Martin v. Löwis2004-11-141-1/+1
|
* Patch #1061931 / bug #971872: factor out part of spillproperties, soJohannes Gijsbers2004-11-071-30/+55
| | | | | properties are also documented if help(Class.<property>) is called instead of help(Class).
* Patch #934356: if a module defines __all__, believe that rather than usingJohannes Gijsbers2004-08-301-4/+12
| | | | heuristics for filtering out imported names.
* Patch #997284: Allow pydoc to work with XP Themes (.manifest file)Martin v. Löwis2004-08-221-2/+10
| | | | Will backport to 2.3.
* Patch #1009389: Make __credits__ a Unicode object.Martin v. Löwis2004-08-221-1/+1
|
* Use readline/raw_input() in pydoc.Helper.interact if available and self.inputJohannes Gijsbers2004-08-171-4/+12
| | | | | is sys.stdin. Based on a patch (#726204) by Dmitry Vasiliev and a comment from Guido in an older patch (#549901).
* Change pydoc.stripid() be able to match against 64-bit addresses by havingBrett Cannon2004-06-191-1/+1
| | | | regex match from 6 to 16 characters.
* pydoc.stripid() is now case-insensitive for its regex to support platforms thatBrett Cannon2004-06-191-6/+6
| | | | | | have pointer addresses in uppercase. Closes bug #934282. Thanks Robin Becker.
* Respect a module's __all__ attribute. Closes #969938.Skip Montanaro2004-06-111-8/+21
|
* correct name error caught by Neal Norwitz with pycheckerSkip Montanaro2004-06-071-3/+3
|
* * Move collections.deque() in from the sandboxRaymond Hettinger2004-01-291-4/+5
| | | | | | * Add unittests, newsitem, and whatsnew * Apply to Queue.py mutex.py threading.py pydoc.py and shlex.py * Docs are forthcoming
* Patch #785689: Use basename in usage. Backported to 2.3.Martin v. Löwis2003-10-311-1/+1
|
* Let library modules use the new keyword arguments for list.sort().Raymond Hettinger2003-10-161-1/+1
|
* display link to module docs when it looks like the object module is a coreSkip Montanaro2003-09-101-1/+47
| | | | module
* (HTML|Text)Repr.repr1: Guard against objects whos types have no __name__Skip Montanaro2003-06-271-10/+10
| | | | attribute. Patch and bug report from Geoff Talvola. Closes patch #672855.
* Support keyword and topics help in cli(). Fixes #715782.Martin v. Löwis2003-06-141-4/+6
|
* Have pydoc try handling an object as "other" if the object does not act the wayBrett Cannon2003-06-111-3/+10
| | | | | | it expects based on what inspect classifies it as. Closes bug #729103 .
* Fix SF bug #735694, Pydoc.py fixes linksNeal Norwitz2003-05-261-5/+6
| | | | | Modified the patch some. Fixed invalid link in UNICODE (to STRING). Also updates some references.