summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-33422: Fix quotation marks getting deleted when looking up byte/string ↵Andrés Delfino2018-05-051-2/+9
| | | | | literals on pydoc. (GH-6701) Also update the list of string prefixes.
* bpo-33185: Improve wording and markup (GH-6477)Nick Coghlan2018-04-151-1/+1
| | | | | | Adds some working and markup fixes that I missed in the initial commit for this issue. (Follow-up to GH-6419)
* bpo-33185: Fix regression in pydoc CLI sys.path handling (GH-6419)Nick Coghlan2018-04-151-7/+39
| | | | | | | | | | The pydoc CLI assumed -m pydoc would add the empty string to sys.path, and hence got confused when it switched to adding the full initial working directory instead. This refactors the pydoc CLI path manipulation to be more testable, and ensures it won't accidentally remove the standard library directory containing pydoc itself from sys.path.
* bpo-32440: Update the docs URL to https in help() (GH-5030)oldk2017-12-281-1/+1
| | | | In pydoc.py, the reference to Python' documentation was in http. The link has been updated to use https.
* bpo-30406: Make async and await proper keywords (#1669)Jelle Zijlstra2017-10-061-1/+3
| | | Per PEP 492, 'async' and 'await' should become proper keywords in 3.7.
* bpo-31128: Allow pydoc to bind to arbitrary hostnames (#3011)Feanil Patel2017-09-141-17/+26
| | | | New -n flag allow overriding localhost with custom value, for example to run from containers.
* bpo-31238: pydoc ServerThread.stop() now joins itself (#3151)Victor Stinner2017-08-211-0/+4
| | | | | | | | | | * bpo-31238: pydoc ServerThread.stop() now joins itself ServerThread.stop() now joins itself to wait until DocServer.serve_until_quit() completes and then explicitly sets its docserver attribute to None to break a reference cycle. * Add NEWS.d entry
* bpo-29776: Use decorator syntax for properties. (#585)Serhiy Storchaka2017-03-191-2/+7
|
* Issue #29338: Don't output an empty signature for class constructor.Serhiy Storchaka2017-01-231-2/+2
|
* Issue #29338: The help of a builtin or extension class now includes theSerhiy Storchaka2017-01-231-3/+29
| | | | constructor signature if __text_signature__ is provided for the class.
* Issue #15767: Use ModuleNotFoundError.Eric Snow2016-09-071-1/+1
|
* - Issue #8637: Honor a pager set by the env var MANPAGER (in preference todoko@ubuntu.com2016-06-141-3/+3
| | | | one set by the env var PAGER).
* - Issue #8637: Honor a pager set by the env var MANPAGER (in preference todoko@ubuntu.com2016-06-141-1/+2
| | | | one set by the env var PAGER).
* Issue #16484: Merge pydoc Windows fixes from 3.5Martin Panter2016-06-121-2/+3
|\
| * Issue #16484: Fix pydoc link and test on Windows, by Kaushik NadikuditiMartin Panter2016-06-121-2/+3
| |
* | Merge: #16484: Fix pydoc doc links to modules whose names are mixed case.R David Murray2016-06-031-6/+6
|\ \ | |/
| * #16484: Fix pydoc doc links to modules whose names are mixed case.R David Murray2016-06-031-6/+6
| | | | | | | | Patch by Sean Rodman, test by Kaushik N.
* | Issue #25985: sys.version_info is now used instead of sys.versionSerhiy Storchaka2016-02-111-3/+3
| | | | | | | | to format short Python version.
* | Issue #18010: Merge pydoc web search fix from 3.5Martin Panter2015-11-061-1/+3
|\ \ | |/
| * Issue #18010: Merge pydoc web search fix from 3.4 into 3.5Martin Panter2015-11-061-1/+3
| |\
| | * Issue #18010: Fix pydoc web server search to handle package exceptionsMartin Panter2015-11-061-1/+3
| | | | | | | | | | | | Implementation by Antoine Pitrou.
* | | Merge with 3.5.Serhiy Storchaka2015-10-061-0/+0
|\ \ \ | |/ /
* | | Issue #24879: Teach pydoc to display named tuple fields in the order they ↵Raymond Hettinger2015-08-191-4/+15
|/ / | | | | | | were defined.
* | Issue #23911: Move path-based bootstrap code to a separate frozen module.Eric Snow2015-05-031-2/+3
| |
* | Issue #23008: Fixed resolving attributes with boolean value is False in pydoc.Serhiy Storchaka2015-04-211-1/+1
|\ \ | |/
| * Issue #23008: Fixed resolving attributes with boolean value is False in pydoc.Serhiy Storchaka2015-04-211-1/+1
| |
* | Issue #23731: Implement PEP 488.Brett Cannon2015-04-131-1/+1
| | | | | | | | | | | | The concept of .pyo files no longer exists. Now .pyc files have an optional `opt-` tag which specifies if any extra optimizations beyond the peepholer were applied.
* | Issue #22831: Use "with" to avoid possible fd leaks.Serhiy Storchaka2015-04-041-3/+2
| |
* | Merge: #23792: also catch interrupt around pipe.write.R David Murray2015-03-301-1/+6
|\ \ | |/
| * #23792: also catch interrupt around pipe.write.R David Murray2015-03-301-1/+6
| | | | | | | | | | | | The previous patch only dealt with KeyboardInterrupt when all of the data had been consumed by the pager. This deals with the interrupt when some data is still pending.
* | Merge: #23792: Ignore KeyboardInterrupt when the pydoc pager is active.R David Murray2015-03-291-3/+10
|\ \ | |/
| * #23792: Ignore KeyboardInterrupt when the pydoc pager is active.R David Murray2015-03-291-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, if you hit ctl-c while the pager was active, the python that launched the subprocess for the pager would see the KeyboardInterrupt in the __exit__ method of the subprocess context manager where it was waiting for the subprocess to complete, ending the wait. This would leave the pager running, while the interactive interpreter, after handling the exception by printing it, would go back to trying to post a prompt...but the pager would generally have the terminal in raw mode, and in any case would be still trying to read from stdin. On some systems, even exiting python at that point would not restore the terminal mode. The problem with raw mode could also happen if ctl-C was hit when pydoc was called from the shell command line and the pager was active. Instead, we now wait on the subprocess in a loop, ignoring KeyboardInterrupt just like the pager does, until the pager actually exits. (Note: this was a regression relative to python2...in python2 the pager is called via system, and system does not return until the pager exits.)
* | Issue #19980: Improved help() for non-recognized strings. help('') nowSerhiy Storchaka2015-02-281-4/+10
| | | | | | | | | | shows the help on str. help('help') now shows the help on help(). Original patch by Mark Lawrence.
* | Issue #23374: Fixed pydoc failure with non-ASCII files when stdout encodingSerhiy Storchaka2015-02-201-9/+13
|\ \ | |/ | | | | differs from file system encoding (e.g. on Mac OS).
| * Issue #23374: Fixed pydoc failure with non-ASCII files when stdout encodingSerhiy Storchaka2015-02-201-9/+13
| | | | | | | | differs from file system encoding (e.g. on Mac OS).
* | merge 3.4 (#21548)Benjamin Peterson2015-02-171-2/+2
|\ \ | |/
| * fix pydoc.apropos and pydoc.synopsis on modules with empty docstrings (#21548)Benjamin Peterson2015-02-171-2/+2
| | | | | | | | Patch by Yuyang Guo and Berker Peksag.
* | Issue #22314: pydoc now works when the LINES environment variable is set.Serhiy Storchaka2014-11-271-2/+8
|\ \ | |/
| * Issue #22314: pydoc now works when the LINES environment variable is set.Serhiy Storchaka2014-11-271-2/+8
| |
* | Issue #20662: Argspec now is escaped in html output of pydoc.Serhiy Storchaka2014-11-171-1/+1
|\ \ | |/
| * Issue #20662: Argspec now is escaped in html output of pydoc.Serhiy Storchaka2014-11-171-1/+1
| |
| * Move Doc/tools/sphinxext content to Doc/tools, there is no need for the ↵Georg Brandl2014-09-301-1/+1
| | | | | | | | nested subdirectory anymore.
* | Move Doc/tools/sphinxext content to Doc/tools, there is no need for the ↵Georg Brandl2014-09-301-1/+1
| | | | | | | | nested subdirectory anymore.
* | Merge from 3.4Senthil Kumaran2014-09-171-2/+2
|\ \ | |/ | | | | Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
| * Merge from 3.3Senthil Kumaran2014-09-171-2/+2
| |\ | | | | | | | | | Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
| | * Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all ↵Senthil Kumaran2014-09-171-2/+2
| | | | | | | | | | | | interfaces.
| | * #17476: make allmethods actually return all methods.R David Murray2013-03-191-1/+4
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a regression relative to Python2. (In 2, methods on a class were unbound methods and matched the inspect queries being done, in 3 they are just functions and so were missed). This is an undocumented function that pydoc itself does not use, but I found that numpy at least uses it in its documentation generator. Original patch by Matt Bachmann.
| | | * #17476: make allmethods actually return all methods.R David Murray2013-03-191-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a regression relative to Python2. (In 2, methods on a class were unbound methods and matched the inspect queries being done, in 3 they are just functions and so were missed). This is an undocumented function that pydoc itself does not use, but I found that numpy at least uses it in its documentation generator. Original patch by Matt Bachmann.
* | | | Issue #22033: Reprs of most Python implemened classes now contain actualSerhiy Storchaka2014-07-251-1/+2
| | | | | | | | | | | | | | | | class name instead of hardcoded one.
* | | | Issue #21942: Fixed source file viewing in pydoc's server mode on Windows.Zachary Ware2014-07-101-5/+3
|\ \ \ \ | |/ / /