[New-bugs-announce] [issue21108] Add doc examples for importlib

Saimadhav Heblikar report at bugs.python.org
Mon Mar 31 06:42:24 CEST 2014


New submission from Saimadhav Heblikar:

The imp module was the defacto module to access the import internals,upto 3.3
It has been deprecated(pending) in 3.4 in favor of importlib.
There are plenty of examples on how to use imp around the web, but very little (even in doc.python.org), on how to use importlib. 

The proposed patch adds couple of examples. These examples are aimed towards people, who were earlier using imp's load_module().

Inspiration for the patch from this SO answer, where user had to go through source code.
http://stackoverflow.com/questions/19009932/import-abitrary-python-source-file-python-3-3

----------
assignee: docs at python
components: Documentation
files: importlib-example.patch
keywords: patch
messages: 215220
nosy: docs at python, sahutd
priority: normal
severity: normal
status: open
title: Add doc examples for importlib
versions: Python 3.4
Added file: http://bugs.python.org/file34675/importlib-example.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21108>
_______________________________________


More information about the New-bugs-announce mailing list