summaryrefslogtreecommitdiffstats
path: root/Doc/reference/import.rst
Commit message (Collapse)AuthorAgeFilesLines
* Issue #15767: Revert 3a50025f1900 for ModuleNotFoundErrorBrett Cannon2013-07-041-6/+6
|
* Issue #15767: Touch up ModuleNotFoundError usage by import.Brett Cannon2013-06-131-6/+6
| | | | | | | | | | | | | Forgot to raise ModuleNotFoundError when None is found in sys.modules. This led to introducing the C function PyErr_SetImportErrorSubclass() to make setting ModuleNotFoundError easier. Also updated the reference docs to mention ModuleNotFoundError appropriately. Updated the docs for ModuleNotFoundError to mention the None in sys.modules case. Lastly, it was noticed that PyErr_SetImportError() was not setting an exception when returning None in one case. That issue is now fixed.
* mergeBrett Cannon2013-05-251-1/+5
|\
| * Mention __cached__ in the import ref.Brett Cannon2013-05-251-1/+5
| |
* | #17115,17116: Have modules initialize the __package__ and __loader__Brett Cannon2013-05-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | attributes to None. The long-term goal is for people to be able to rely on these attributes existing and checking for None to see if they have been set. Since import itself sets these attributes when a loader does not the only instances when the attributes are None are from someone overloading __import__() and not using a loader or someone creating a module from scratch. This patch also unifies module initialization. Before you could have different attributes with default values depending on how the module object was created. Now the only way to not get the same default set of attributes is to circumvent initialization by calling ModuleType.__new__() directly.
* | Merge with 3.3.Georg Brandl2013-03-281-2/+1
|\ \ | |/
| * Closes #4159: add LaTeX tabular column specifications to tables that ↵Georg Brandl2013-03-281-2/+1
| | | | | | | | otherwise are cut off or have overlapping text.
* | Issue #17117: Have both import itself and importlib.util.set_loader()Brett Cannon2013-03-131-7/+9
|/ | | | | | set __loader__ on a module when set to None. Thanks to Gökcen Eraslan for the fix.
* - Issue #16514: Fix regression causing a traceback when sys.path[0] is NoneBarry Warsaw2012-11-201-9/+15
| | | | (actually, any non-string or non-bytes type).
* Issue #16144: Fix misleading sentence in reference/import.Andrew Svetlov2012-11-151-5/+5
| | | | Patch by Manuel Pégourié-Gonnard
* s/path importer/path based finder/ (because the path based finder is not an ↵Nick Coghlan2012-08-201-46/+51
| | | | importer and the simpler 'path finder' is too ambiguous)
* Fix markup errors and update pydoc topics.Georg Brandl2012-08-111-1/+1
|
* Issue #15502: Bring the importlib.PathFinder docs and docstring more in line ↵Nick Coghlan2012-08-021-73/+148
| | | | with the new import system documentation, and fix various parts of the new docs that weren't quite right given PEP 420 or were otherwise a bit misleading. Also note the key terminology problem still being discussed in the issue
* Finally, a coherent set of terminology for all the lil' beasties involved.Barry Warsaw2012-07-311-0/+617