[docs] [issue21108] Add doc examples for importlib
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.
assignee: docs at python
nosy: docs at python, sahutd
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>
More information about the docs