summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Patch #711902: Cause pydoc to show data descriptor __doc__ strings.Martin v. Löwis2003-05-031-2/+2
|
* SF patch #706338, Fix a few broken links in pydoc by Greg ChapmanNeal Norwitz2003-03-301-4/+4
|
* Hide private names beginning with _ (but don't hide __special__ names).Ka-Ping Yee2003-03-281-54/+77
| | | | | | Clean up section headings; make the bars on the left less fat. Adjust the display of properties slightly. Don't show stuff inherited from the base 'object' type.
* Fix SF patch #695581, "returnself" -> "return self"Neal Norwitz2003-03-011-1/+1
|
* Get rid of many apply() calls.Guido van Rossum2003-02-271-5/+5
|
* Fix for SF 686380, from SF patch 686771 by Ping. (errors trying toGuido van Rossum2003-02-161-1/+1
| | | | get help on os attributes)
* Fix SF bug #642168, help() fails for some builtin topicsNeal Norwitz2003-02-071-2/+2
| | | | | | Fix pydoc when doing help for: and, or, not, UNICODE. Will backport.
* SF bug 666444: 'help' makes linefeed only under Win32.Tim Peters2003-02-071-2/+2
| | | | | | Reverting one of those irritating "security fixes". fdopen() opens files in binary mode. That makes pydoc skip the \r\n on Windows that's need to make the output readable in the shell. Screw it.
* Gracefully delay runtime error up to 1s. Add .willdispatch().Martin v. Löwis2002-12-281-0/+1
|
* Correct erroneous parenthesis placement in the delta from 1.63 to 1.64.Raymond Hettinger2002-11-021-2/+2
|
* SF bug 630824: pydoc Helper keywords missing 'yield'Tim Peters2002-10-301-0/+1
| | | | | | | Wow, what a brittle subsystem! Fixed, maybe, provided Fred doesn't shuffle the docs around. Bugfix candidate.
* Explicitly use floor divisionRaymond Hettinger2002-10-211-1/+1
|
* try executing 'less' in a parenthesized subshell - prevents systems likeSkip Montanaro2002-09-261-1/+1
| | | | | Solaris from squawking if less isn't available. See http://python.org/sf/612111 for details.
* Added the standard MacOSX location for documentation inside a frameworkJack Jansen2002-08-231-1/+2
| | | | to the list of places where pydoc looks for HTML documents.
* Extend stripid() to handle strings ending in more than one '>'.Ka-Ping Yee2002-08-111-37/+36
| | | | | Add resolve() to handle looking up objects and names (fix SF bug 586931). Add a nicer error message when given a filename that doesn't exist.
* Massive changes from SF 589982 (tempfile.py rewrite, by ZackGuido van Rossum2002-08-091-4/+4
| | | | | Weinberg). This changes all uses of deprecated tempfile functions to the recommended ones.
* Add a coding cookie, because of the møøse quote.Guido van Rossum2002-08-061-0/+1
|
* Replaced obsolete stat module constants with equivalent attributesRaymond Hettinger2002-06-011-4/+4
|