This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Tweak importlib Example of importlib.import_module() to use importlib.util.module_from_spec()
Type: Stage: resolved
Components: Documentation Versions: Python 3.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: brett.cannon Nosy List: brett.cannon, python-dev
Priority: normal Keywords:

Created on 2016-02-21 00:59 by brett.cannon, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg260589 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2016-02-21 00:59
The example uses `spec.loader.create_module()` where it should be using `util.module_from_spec(spec)`.
msg260594 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-02-21 02:46
New changeset f2a089d68297 by Brett Cannon in branch 'default':
Issue #26397: Update an importlib example to use util.module_from_spec() instead of create_module()
https://hg.python.org/cpython/rev/f2a089d68297
History
Date User Action Args
2022-04-11 14:58:27adminsetgithub: 70585
2016-02-21 02:46:18brett.cannonsetstatus: open -> closed
resolution: fixed
stage: needs patch -> resolved
2016-02-21 02:46:03python-devsetnosy: + python-dev
messages: + msg260594
2016-02-21 00:59:08brett.cannoncreate