summaryrefslogtreecommitdiffstats
path: root/Doc/library/importlib.rst
Commit message (Collapse)AuthorAgeFilesLines
* Issue #26252: Add an example on how to register a finderBrett Cannon2016-03-181-2/+32
|
* Fix a name in an exampleBrett Cannon2016-02-211-1/+1
|
* Issue #26397: Update an importlib example to use util.module_from_spec() ↵Brett Cannon2016-02-211-1/+1
| | | | instead of create_module()
* Merge w/ 3.5Brett Cannon2016-02-211-1/+2
|\
| * List what classes from importlib.machinery don't work with ↵Brett Cannon2016-02-211-1/+2
| | | | | | | | importlib.util.LazyLoader
* | Issue #26242: Fix another one in importlib.rstBerker Peksag2016-01-301-1/+1
|\ \ | |/
| * Issue #26242: Fix another one in importlib.rstBerker Peksag2016-01-301-1/+1
| |
* | Merge from 3.5Brett Cannon2016-01-221-1/+1
|\ \ | |/
| * Fix a typo in a code exampleBrett Cannon2016-01-221-1/+1
| |
* | Issue #25802: Add an examples section to importlib.Brett Cannon2016-01-081-2/+89
| | | | | | | | Thanks to Berker Peksag for the patch review.
* | Issue #25802: Deprecate load_module() on ↵Brett Cannon2015-12-291-0/+8
|/ | | | | | | importlib.machinery.SourceFileLoader and SourcelessFileLoader. They were the only remaining implementations of load_module() not documented as deprecated.
* Issue #21240: Add an abstractmethod directive to mark abstract methods in ↵Berker Peksag2015-12-081-6/+6
| | | | the docs more explicitly
* Issue #25161: Merge full stops from 3.4 into 3.5Martin Panter2015-10-101-1/+1
|\
| * Issue #25161: Add full stops in documentation; patch by Takase ArihiroMartin Panter2015-10-101-1/+1
| |
* | Issue #20769: Improve reload() docs. Patch by Dorian Pula.Robert Collins2015-08-041-5/+5
|\ \ | |/
| * Issue #20769: Improve reload() docs. Patch by Dorian Pula.Robert Collins2015-08-041-5/+5
| |
* | PEP 489: Multi-phase extension module initializationNick Coghlan2015-05-231-9/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Known limitations of the current implementation: - documentation changes are incomplete - there's a reference leak I haven't tracked down yet The leak is most visible by running: ./python -m test -R3:3 test_importlib However, you can also see it by running: ./python -X showrefcount Importing the array or _testmultiphase modules, and then deleting them from both sys.modules and the local namespace shows significant increases in the total number of active references each cycle. By contrast, with _testcapi (which continues to use single-phase initialisation) the global refcounts stabilise after a couple of cycles.
* | Merge: #24081: Remove obsolete caveat from import docs.R David Murray2015-05-021-6/+0
|\ \ | |/
| * #24081: Remove obsolete caveat from import docs.R David Murray2015-05-021-6/+0
| | | | | | | | | | | | | | Per Eric Snow's research, this changed in Python 2.4 in changeset 331e60d8ce, but these docs were not updated. Patch by Peter Viktorin.
* | Regenerated pydoc-topics and fixed bad/suspicious doc markup for Python 3.5.0a4.Larry Hastings2015-04-191-1/+1
| |
* | Issue #23731: Implement PEP 488.Brett Cannon2015-04-131-13/+35
| | | | | | | | | | | | 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 #23422: Clarify some things around importlib.import_module()Brett Cannon2015-02-201-6/+13
| |
* | Issue #23014: Make importlib.abc.Loader.create_module() required whenBrett Cannon2015-01-091-10/+14
| | | | | | | | | | | | | | | | | | importlib.abc.Loader.exec_module() is also defined. Before this change, create_module() was optional **and** could return None to trigger default semantics. This change now reduces the options for choosing default semantics to one and in the most backporting-friendly way (define create_module() to return None).
* | Issue #22834: Have import suppress FileNotFoundError when the currentBrett Cannon2014-11-211-0/+5
| | | | | | | | | | | | working directory no longer exists. Thanks to Martin Panter for the bug report.
* | merge with 3.4Georg Brandl2014-10-291-1/+1
|\ \ | |/
| * Fixing broken links in doc, part 4: some more breaks and redirectsGeorg Brandl2014-10-291-1/+1
| |
* | Merge with 3.4Georg Brandl2014-10-291-1/+1
|\ \ | |/
| * Use https:// URLs when referring to python.org hosts.Georg Brandl2014-10-291-1/+1
| |
* | Issue #20383: Introduce importlib.util.module_from_spec().Brett Cannon2014-05-301-0/+15
| | | | | | | | | | | | Along the way, dismantle importlib._bootstrap._SpecMethods as it was no longer relevant and constructing the new function required partially dismantling the class anyway.
* | Issue #21156: importlib.abc.InspectLoader.source_to_code() is now aBrett Cannon2014-05-091-1/+7
| | | | | | | | staticmethod.
* | Merge for issue #21438Brett Cannon2014-05-091-1/+11
|\ \ | |/
| * Issue #21438: Document what loaders don't require a module name forBrett Cannon2014-05-091-1/+11
| | | | | | | | load_module().
* | Issue #17621: Introduce importlib.util.LazyLoader.Brett Cannon2014-04-041-0/+35
|/
* Get rid of deprecated IOError in the docAndrew Svetlov2014-03-311-6/+6
|
* Fix a few scoping issues with versionadded/versionchanged directives.Georg Brandl2014-03-241-2/+2
|
* Merge in all documentation changes since branching 3.4.0rc1.Larry Hastings2014-03-161-1/+1
|
* Merge for issue #20488Brett Cannon2014-02-061-6/+8
|\
| * Issue #20488: Update docs to say importlib is *the* implementaiton ofBrett Cannon2014-02-061-6/+8
| | | | | | | | import and not *an* implementation.
* | Issue 19944: Fix importlib.find_spec() so it imports parents as needed.Eric Snow2014-01-251-17/+17
| | | | | | | | The function is also moved to importlib.util.
* | whatsnew: InspectLoader.get_code now concrete, b32decode raises binascii.Error.R David Murray2014-01-081-4/+4
| | | | | | | | And a news item rephrase.
* | Issue #19719: Update various finder and loader ABCs such that theirBrett Cannon2014-01-071-2/+14
| | | | | | | | | | | | | | old methods now provide implementations when PEP 451 APIs are present. This should help with backwards-compatibility with code which has not been updated to work with PEP 451.
* | Issue #19713: Update importlib docs for module spec changes, including ↵Eric Snow2013-12-171-22/+150
| | | | | | | | deprecations.
* | merge for issue #19963Brett Cannon2013-12-131-2/+5
|\ \ | |/
| * Issue #19963: Document that importlib.import_module() will importBrett Cannon2013-12-131-2/+5
| | | | | | | | parent packages automatically.
| * Revert unrelated changes introduced by changeset b2066bc8cab9 (issue #19795).Serhiy Storchaka2013-11-291-10/+0
| |
* | Issue #18864: Add a setter for ModuleSpec.has_location.Eric Snow2013-12-111-1/+1
| |
* | Issue #19795: Improved markup of True/False constants.Serhiy Storchaka2013-11-291-2/+2
|\ \ | |/
| * Issue #19795: Improved markup of True/False constants.Serhiy Storchaka2013-11-291-0/+10
| |
* | Implement PEP 451 (ModuleSpec).Eric Snow2013-11-221-64/+80
| |
* | Issue #19410: Put back in special-casing of '' forBrett Cannon2013-11-011-3/+0
| | | | | | | | | | | | | | | | | | importlib.machinery.FileFinder. While originally moved to stop special-casing '' as PathFinder farther up the typical call chain now uses the cwd in the instance of '', it was deemed an unnecessary risk to breaking subclasses of FileFinder to take the special-casing out.