summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #19030: final pieces for proper location of various class attributes ↵Ethan Furman2013-10-211-3/+4
| | | | | | | | | | | | | | located in the metaclass. Okay, hopefully the very last patch for this issue. :/ I realized when playing with Enum that the metaclass attributes weren't always displayed properly. New patch properly locates DynamicClassAttributes, virtual class attributes (returned by __getattr__ and friends), and metaclass class attributes (if they are also in the metaclass __dir__ method). Also had to change one line in pydoc to get this to work. Added tests in test_inspect and test_pydoc to cover these situations.
* Issue #18716: Deprecate the formatter moduleBrett Cannon2013-10-041-5/+4
|
* Issue #15767: back out 8a0ed9f63c6e, finishing the removal ofBrett Cannon2013-07-041-1/+1
| | | | ModuleNotFoundError.
* Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-2/+2
|
* Issue #17177: Stop using imp in pydocBrett Cannon2013-06-151-5/+4
|
* Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-141-2/+2
| | | | ModuleNotFoundError.
* Issue #15767: Introduce ModuleNotFoundError, a subclass ofBrett Cannon2013-06-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | ImportError. The exception is raised by import when a module could not be found. Technically this is defined as no viable loader could be found for the specified module. This includes ``from ... import`` statements so that the module usage is consistent for all situations where import couldn't find what was requested. This should allow for the common idiom of:: try: import something except ImportError: pass to be updated to using ModuleNotFoundError and not accidentally mask ImportError messages that should propagate (e.g. issues with a loader). This work was driven by the fact that the ``from ... import`` statement needed to be able to tell the difference between an ImportError that simply couldn't find a module (and thus silence the exception so that ceval can raise it) and an ImportError that represented an actual problem.
* Issue #18157: stop using imp.load_module() in imp.Brett Cannon2013-06-111-12/+12
|
* #11182: remove the unused and undocumented pydoc.Scanner class. Patch by ↵Ezio Melotti2013-04-181-24/+0
| | | | Martin Morrison.
* Merge: #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.
* modernize some modules' code by using with statement around open()Giampaolo Rodola'2013-02-121-3/+2
|
* Closes #17158: Add 'symbols' to help() welcome message; clarify 'modules spam'Terry Jan Reedy2013-02-111-7/+8
| | | | messages.
* Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-2/+2
|
* merge 3.3Benjamin Peterson2012-10-091-2/+2
|\
| * compare singletons by identity not equality (closes #16712)Benjamin Peterson2012-10-091-2/+2
| | | | | | | | Patch from Serhiy Storchaka.
* | #16135: Removal of OS/2 support (Python code partial cleanup)Jesus Cea2012-10-051-1/+1
|/
* Issue #15163: Pydoc shouldn't show __loader__ as a part of a module'sBrett Cannon2012-08-061-5/+5
| | | | | | | | | data. Also alphabetized the attributes in the blacklist to make it easier to detect changes. Initial patch by Éric Araujo.
* Issue #9319: Remove the workaround for this since fixed problem from pydocNick Coghlan2012-07-151-8/+0
|
* Issue #15343: A lot more than just unicode decoding can go wrong when ↵Nick Coghlan2012-07-151-1/+1
| | | | retrieving a source file
* Closes #15162: the meaning of "online" has shifted a bit in recent years, ↵Georg Brandl2012-06-241-2/+2
| | | | use "interactive" instead.
* Implemented PEP 405 (Python virtual environments).Vinay Sajip2012-05-261-1/+1
|
* Issue #9260: A finer-grained import lock.Antoine Pitrou2012-05-171-1/+1
| | | | | Most of the import sequence now uses per-module locks rather than the global import lock, eliminating well-known issues with threads and imports.
* Issue #13959: Deprecate imp.get_suffixes() for new attributes onBrett Cannon2012-05-111-5/+20
| | | | | | | | | | | importlib.machinery that provide the suffix details for import. The attributes were not put on imp so as to compartmentalize everything importlib needs for setting up imports in importlib.machinery. This also led to an indirect deprecation of inspect.getmoduleinfo() as it directly returned imp.get_suffix's returned tuple which no longer makes sense.
* merge #14638: pydoc now treats non-str __name__ as None instead of raisingR David Murray2012-04-231-1/+2
|\ | | | | | | Original patch by Peter Otten.
| * #14638: pydoc now treats non-str __name__ as None instead of raisingR David Murray2012-04-231-1/+2
| | | | | | | | Original patch by Peter Otten.
* | Issue #2377: Make importlib the implementation of __import__().Brett Cannon2012-04-141-3/+2
| | | | | | | | | | | | | | importlib._bootstrap is now frozen into Python/importlib.h and stored as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen code along with sys and imp and then uses _frozen_importlib._install() to set builtins.__import__() w/ _frozen_importlib.__import__().
* | Merge #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.
| * #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.
* | 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 #1785: Fix inspect and pydoc with misbehaving descriptors.Antoine Pitrou2011-12-211-5/+24
| | | | | | | | Also fixes issue #13581: `help(type)` wouldn't display anything.
* | PEP 3155 / issue #13448: Qualified name for classes and functions.Antoine Pitrou2011-11-251-1/+1
| |
* | Merge 3.2Florent Xicluna2011-10-281-2/+2
|\ \ | |/
| * Closes #13258: Use callable() built-in in the standard library.Florent Xicluna2011-10-281-2/+2
| |
* | Merge 3.2Éric Araujo2011-09-121-4/+5
|\ \ | |/
| * Wrap pydoc output under 80 charactersÉric Araujo2011-09-101-4/+5
| |
* | Merge fix for #8887 from 3.2Éric Araujo2011-07-291-6/+7
|\ \ | |/
| * Make “pydoc somebuiltin.somemethod” work (#8887)Éric Araujo2011-07-291-6/+7
| |
* | Issue #12603: Fix pydoc.synopsis() on files with non-negative st_mtime.Charles-François Natali2011-07-271-2/+2
|\ \ | |/
| * Issue #12603: Fix pydoc.synopsis() on files with non-negative st_mtime.Charles-François Natali2011-07-271-2/+2
| |
* | (merge 3.2) Issue #12451: pydoc: html_getfile() now uses tokenize.open() toVictor Stinner2011-07-051-1/+1
|\ \ | |/ | | | | | | support Python scripts using a encoding different than UTF-8 (read the coding cookie of the script).
| * Issue #12451: pydoc: html_getfile() now uses tokenize.open() to support PythonVictor Stinner2011-07-051-1/+1
| | | | | | | | | | scripts using a encoding different than UTF-8 (read the coding cookie of the script).
* | (merge 3.2) Issue #12451: pydoc: importfile() now opens the Python script inVictor Stinner2011-07-041-14/+12
|\ \ | |/ | | | | | | binary mode, instead of text mode using the locale encoding, to avoid encoding issues.
| * Issue #12451: pydoc: importfile() now opens the Python script in binary mode,Victor Stinner2011-07-041-14/+12
| | | | | | | | instead of text mode using the locale encoding, to avoid encoding issues.
* | (merge 3.2) Issue #12451: pydoc.synopsis() now reads the encoding cookie ifVictor Stinner2011-06-301-4/+5
|\ \ | |/ | | | | available, to read the Python script from the right encoding.
| * Issue #12451: pydoc.synopsis() now reads the encoding cookie if available, toVictor Stinner2011-06-301-4/+5
| | | | | | | | read the Python script from the right encoding.
* | remove __version__s dependent on subversion keyword expansion (closes #12221)Benjamin Peterson2011-06-011-1/+0
| |
* | Issue #10818: Remove deprecated pydoc.serve() functionVictor Stinner2011-05-241-85/+0
| | | | | | | | The pydoc module has a new enhanced web server.
* | Issue #10818: Remove the Tk GUI of the pydoc module (pydoc -g has beenVictor Stinner2011-05-241-193/+1
| | | | | | | | deprecated in Python 3.2).
* | #11926: merge with 3.2.Ezio Melotti2011-04-281-0/+6
|\ \ | |/
| * #11926: merge with 3.1.Ezio Melotti2011-04-281-0/+6
| |\