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-fi...
----------
assignee: docs@python
components: Documentation
files: importlib-example.patch
keywords: patch
messages: 215220
nosy: docs@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