Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #19030: final pieces for proper location of various class attributes ↵ | Ethan Furman | 2013-10-21 | 1 | -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 module | Brett Cannon | 2013-10-04 | 1 | -5/+4 |
| | |||||
* | Issue #15767: back out 8a0ed9f63c6e, finishing the removal of | Brett Cannon | 2013-07-04 | 1 | -1/+1 |
| | | | | ModuleNotFoundError. | ||||
* | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) | Brett Cannon | 2013-07-04 | 1 | -2/+2 |
| | |||||
* | Issue #17177: Stop using imp in pydoc | Brett Cannon | 2013-06-15 | 1 | -5/+4 |
| | |||||
* | Issue #18200: Update the stdlib (except tests) to use | Brett Cannon | 2013-06-14 | 1 | -2/+2 |
| | | | | ModuleNotFoundError. | ||||
* | Issue #15767: Introduce ModuleNotFoundError, a subclass of | Brett Cannon | 2013-06-12 | 1 | -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 Cannon | 2013-06-11 | 1 | -12/+12 |
| | |||||
* | #11182: remove the unused and undocumented pydoc.Scanner class. Patch by ↵ | Ezio Melotti | 2013-04-18 | 1 | -24/+0 |
| | | | | Martin Morrison. | ||||
* | Merge: #17476: make allmethods actually return all methods. | R David Murray | 2013-03-19 | 1 | -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-12 | 1 | -3/+2 |
| | |||||
* | Closes #17158: Add 'symbols' to help() welcome message; clarify 'modules spam' | Terry Jan Reedy | 2013-02-11 | 1 | -7/+8 |
| | | | | messages. | ||||
* | Replace IOError with OSError (#16715) | Andrew Svetlov | 2012-12-25 | 1 | -2/+2 |
| | |||||
* | merge 3.3 | Benjamin Peterson | 2012-10-09 | 1 | -2/+2 |
|\ | |||||
| * | compare singletons by identity not equality (closes #16712) | Benjamin Peterson | 2012-10-09 | 1 | -2/+2 |
| | | | | | | | | Patch from Serhiy Storchaka. | ||||
* | | #16135: Removal of OS/2 support (Python code partial cleanup) | Jesus Cea | 2012-10-05 | 1 | -1/+1 |
|/ | |||||
* | Issue #15163: Pydoc shouldn't show __loader__ as a part of a module's | Brett Cannon | 2012-08-06 | 1 | -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 pydoc | Nick Coghlan | 2012-07-15 | 1 | -8/+0 |
| | |||||
* | Issue #15343: A lot more than just unicode decoding can go wrong when ↵ | Nick Coghlan | 2012-07-15 | 1 | -1/+1 |
| | | | | retrieving a source file | ||||
* | Closes #15162: the meaning of "online" has shifted a bit in recent years, ↵ | Georg Brandl | 2012-06-24 | 1 | -2/+2 |
| | | | | use "interactive" instead. | ||||
* | Implemented PEP 405 (Python virtual environments). | Vinay Sajip | 2012-05-26 | 1 | -1/+1 |
| | |||||
* | Issue #9260: A finer-grained import lock. | Antoine Pitrou | 2012-05-17 | 1 | -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 on | Brett Cannon | 2012-05-11 | 1 | -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 raising | R David Murray | 2012-04-23 | 1 | -1/+2 |
|\ | | | | | | | Original patch by Peter Otten. | ||||
| * | #14638: pydoc now treats non-str __name__ as None instead of raising | R David Murray | 2012-04-23 | 1 | -1/+2 |
| | | | | | | | | Original patch by Peter Otten. | ||||
* | | Issue #2377: Make importlib the implementation of __import__(). | Brett Cannon | 2012-04-14 | 1 | -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-specific | R David Murray | 2012-03-31 | 1 | -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-specific | R David Murray | 2012-03-31 | 1 | -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 Pitrou | 2011-12-21 | 1 | -5/+24 |
|\ \ | |/ | | | | | Also fixes issue #13581: `help(type)` wouldn't display anything. | ||||
| * | Issue #1785: Fix inspect and pydoc with misbehaving descriptors. | Antoine Pitrou | 2011-12-21 | 1 | -5/+24 |
| | | | | | | | | Also fixes issue #13581: `help(type)` wouldn't display anything. | ||||
* | | PEP 3155 / issue #13448: Qualified name for classes and functions. | Antoine Pitrou | 2011-11-25 | 1 | -1/+1 |
| | | |||||
* | | Merge 3.2 | Florent Xicluna | 2011-10-28 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | Closes #13258: Use callable() built-in in the standard library. | Florent Xicluna | 2011-10-28 | 1 | -2/+2 |
| | | |||||
* | | Merge 3.2 | Éric Araujo | 2011-09-12 | 1 | -4/+5 |
|\ \ | |/ | |||||
| * | Wrap pydoc output under 80 characters | Éric Araujo | 2011-09-10 | 1 | -4/+5 |
| | | |||||
* | | Merge fix for #8887 from 3.2 | Éric Araujo | 2011-07-29 | 1 | -6/+7 |
|\ \ | |/ | |||||
| * | Make “pydoc somebuiltin.somemethod” work (#8887) | Éric Araujo | 2011-07-29 | 1 | -6/+7 |
| | | |||||
* | | Issue #12603: Fix pydoc.synopsis() on files with non-negative st_mtime. | Charles-François Natali | 2011-07-27 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | Issue #12603: Fix pydoc.synopsis() on files with non-negative st_mtime. | Charles-François Natali | 2011-07-27 | 1 | -2/+2 |
| | | |||||
* | | (merge 3.2) Issue #12451: pydoc: html_getfile() now uses tokenize.open() to | Victor Stinner | 2011-07-05 | 1 | -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 Python | Victor Stinner | 2011-07-05 | 1 | -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 in | Victor Stinner | 2011-07-04 | 1 | -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 Stinner | 2011-07-04 | 1 | -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 if | Victor Stinner | 2011-06-30 | 1 | -4/+5 |
|\ \ | |/ | | | | | available, to read the Python script from the right encoding. | ||||
| * | Issue #12451: pydoc.synopsis() now reads the encoding cookie if available, to | Victor Stinner | 2011-06-30 | 1 | -4/+5 |
| | | | | | | | | read the Python script from the right encoding. | ||||
* | | remove __version__s dependent on subversion keyword expansion (closes #12221) | Benjamin Peterson | 2011-06-01 | 1 | -1/+0 |
| | | |||||
* | | Issue #10818: Remove deprecated pydoc.serve() function | Victor Stinner | 2011-05-24 | 1 | -85/+0 |
| | | | | | | | | The pydoc module has a new enhanced web server. | ||||
* | | Issue #10818: Remove the Tk GUI of the pydoc module (pydoc -g has been | Victor Stinner | 2011-05-24 | 1 | -193/+1 |
| | | | | | | | | deprecated in Python 3.2). | ||||
* | | #11926: merge with 3.2. | Ezio Melotti | 2011-04-28 | 1 | -0/+6 |
|\ \ | |/ | |||||
| * | #11926: merge with 3.1. | Ezio Melotti | 2011-04-28 | 1 | -0/+6 |
| |\ |