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@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue21108>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to