summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
Commit message (Collapse)AuthorAgeFilesLines
* Oh, ok, so plainpager is probably marginally better.Fred Drake2001-07-231-1/+1
|
* If $TERM is "dumb" or "emacs", just dump the text instead of trying to runFred Drake2001-07-231-0/+2
| | | | | | "less". Patch contributed by Alex Convertry. This closes SF patch #443551.
* Change some text just a little to avoid font-lock hell.Fred Drake2001-05-101-1/+1
|
* One-character style change to appease Netscape stylesheets.Ka-Ping Yee2001-04-131-1/+1
|
* Use nturl2path to generate a file: URL to source files in Windows.Ka-Ping Yee2001-04-131-3/+7
|
* Use inspect.stack()[1][3] to tell if Helper.__repr__ is called interactively.Ka-Ping Yee2001-04-131-2/+2
|
* Add inode checks to detect circular symbolic links (so that theKa-Ping Yee2001-04-131-3/+7
| | | | Tools/idle/idlelib link doesn't cause an infinite loop -- aack!)
* Small style change to accommodate Netscape.Ka-Ping Yee2001-04-131-1/+1
|
* Word-wrap the list of cross-references.Ka-Ping Yee2001-04-131-1/+5
|
* Another pass through the topic table to fill in cross references.Ka-Ping Yee2001-04-131-20/+27
| | | | Restore Helper.__repr__ for now.
* Make force-loading optional; don't force-load in interactive mode.Ka-Ping Yee2001-04-131-133/+147
| | | | | | | | Make synopsis() load modules as '__temp__' so they don't clobber anything. Change "constants" section to "data" section. Don't show __builtins__ or __doc__ in "data" section. For Bob Weiner: don't boldface text in Emacs shells or dumb terminals. Remove Helper.__repr__ (it really belongs in site.py, and should be guarded by a check for len(inspect.stack) <= 2).
* Fix linking to classes (in class tree, and add links on unbound methods).Ka-Ping Yee2001-04-121-24/+23
|
* Fix call to ModuleScanner from GUI search interface.Ka-Ping Yee2001-04-121-8/+10
| | | | Fix handling of unbound top-level methods.
* Added a big new Helper class to provide interactive help!Ka-Ping Yee2001-04-121-12/+276
|
* Give up trying to keep dynamically loaded extensions up to date:Ka-Ping Yee2001-04-121-1/+7
| | | | the import.c machinery has soundly defeated my every attempt.
* Remove forking. Doesn't work in Windows.Ka-Ping Yee2001-04-121-2/+2
|
* Typo fixes and small touches.Ka-Ping Yee2001-04-121-13/+16
|
* Properly qualify methods inherited from classes in other modules.Ka-Ping Yee2001-04-121-152/+130
| | | | | | | | | | Fix so that docother() doesn't blow up. Eliminate man() function since doc() and man() did nearly the same thing. Various other code cleanup and refactoring to reduce duplication. Simplify and rewrite freshimport() so modules are always up to date, even within packages (where reload() doesn't work). Add finalization callback to the server (so that if the server fails to start for some reason, the main thread isn't left hanging).
* Fix typo in instantiation of ErrorDuringImport.Ka-Ping Yee2001-04-101-1/+1
|
* Fix synopsis() so it can handle binary module files.Ka-Ping Yee2001-04-101-85/+85
| | | | | | | | | Avoid ever using popen on Windows, since it's broken there. Factor out the business of getting the summary line into splitdoc(). Use the modulename() routine in inspect. Show all members of modules and classes rather than filtering on leading '_'. Small typo and formtating fixes. Don't show warnings when running "pydoc -k".
* Fix some reloading problems (still more work needed).Ka-Ping Yee2001-03-271-6/+16
| | | | | Add hyperlinks to PEPs at http://www.python.org/peps/pep-%04d.html Remove script directory (dirname of sys.argv[0]) from sys.path.
* Browser compatibility fixes.Ka-Ping Yee2001-03-231-7/+8
| | | | Show methods aliased into a class from other classes.
* Small formatting improvements.Ka-Ping Yee2001-03-231-10/+13
|
* Show inherited methods, with hyperlinks to the base class they came from.Ka-Ping Yee2001-03-231-112/+168
| | | | | | | | | | | Font adjustment to improve viewing in Windows (the default monospaced font, Courier New, seems to have no reasonable size in IE!) Improve error handling. Try very hard to distinguish between failure to find a module and failure during the module importing process. Improve reloading behaviour. (Still needs some work.) Add '.' to sys.path when running as a script at the command-line. Don't automatically assume '-g' based on the platform. We'll just have the batch file supply -g.
* Fixes for various issues reported and discovered since Python 9:Ka-Ping Yee2001-03-231-224/+329
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Factor description of import errors into DocImportError.__str__. Add "docother" and "fail" methods to Doc class. Factor formatting of constants into "docother". Increase max string repr limit to 100 characters. Factor page generation into HTMLDoc.page. Handle aliasing of names (objects appearing under an attribute name different from their intrinsic __name__) by passing the attribute name into each doc* method. Handle methods at top level of modules (e.g. in random). Try to do reloading efficiently. Important fixes still to do: Module reloading is broken by the unfortunate property that failed imports leave an incomplete module in sys. Still need to think of a good solution. Can't document modules in the current directory, due to the other unfortunate property that sys.path gets '.' when you run 'python' but it gets the script directory when you run a script. Need to ponder to find a solution. The synopsis() routine does not work on .so modules. Aliases cause duplicate copies of documentation to appear. This is easy to fix, just more work. Classes appear as their intrinsic name, not their attribute name, in the class hierarchy. This should be fixed. Inherited methods should be listed in class descriptions.
* Whitespace normalization.Tim Peters2001-03-161-3/+1
|
* Use '127.0.0.1' only on Mac; for other, sane platforms, use 'localhost'.Ka-Ping Yee2001-03-021-2/+3
|
* The sys.platform identifier for Windows is just 'win32' (for all varieties).Ka-Ping Yee2001-03-021-8/+8
|
* Believe it or not, but "more" on Windows requires "more <file" ratherGuido van Rossum2001-03-021-1/+1
| | | | | | than "more file". Since tempfilepager() is only used on Windows, it seems, do this unconditionally -- on Unix, it always invokes something else.
* Clean up the handling of getsourcefile/getabsfile.Ka-Ping Yee2001-03-021-23/+37
| | | | | Remove __main__ from the index of built-in modules. Miscellaneous compatibility fixes.
* Use imp.get_suffixes to determine a module name in modulename(file).Ka-Ping Yee2001-03-021-7/+25
| | | | When possible, display strings containing backslashes using r'' notation.
* Also accept .so as an extension for module files.Ka-Ping Yee2001-03-011-8/+4
|
* Docstring improvements.Ka-Ping Yee2001-03-011-196/+395
| | | | | | | | | | | | | Add checks for .pyo and .pyd. Collapse docfunction, docmethod, docbuiltin into the one method docroutine. Small formatting fixes. Link the segments of a package path in the title. Link to the source file only if it exists. Allow modules (e.g. repr.py) to take precedence over built-ins (e.g. repr()). Add interruptible synopsis scanner (so we can do searches in the background). Make HTTP server quit. Add small GUI for controlling the server and launching searches (like -k). (Tested on Win2k, Win98, and Linux.)
* Normalize case of paths in sys.path to avoid duplicates on Windows.Ka-Ping Yee2001-03-011-14/+24
| | | | | | Handle <... at 001B6378> like <... at 0x120f80> (%p is platform-dependent). Fix RCS version tag handling. Move __main__ behaviour into a function, pydoc.cli().
* Whitespace normalization.Tim Peters2001-02-281-2/+2
|
* Macintosh compatibility.Ka-Ping Yee2001-02-271-1/+1
|
* Acknowledgements.Ka-Ping Yee2001-02-271-2/+3
|
* Fix $Revision$ processing so it doesn't get eaten by CVS!Ka-Ping Yee2001-02-271-2/+2
|
* Add $Revision: $ tag.Ka-Ping Yee2001-02-271-1/+1
|
* Add display of $Revision $ and credits.Ka-Ping Yee2001-02-271-10/+33
|
* pydoc: text and HTML documentation generator for interactive useKa-Ping Yee2001-02-271-0/+1158