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: Documentation Recommends Deprecated `imp` Module
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.6, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: orsenthil Nosy List: camconn, docs@python, orsenthil, python-dev
Priority: normal Keywords:

Created on 2016-01-17 01:08 by camconn, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg258438 - (view) Author: Cameron Conn (camconn) Date: 2016-01-17 01:08
The documentation detailing modules recommends using the deprecated `imp` module in section 6.1. Instead, it should recommend `importlib`, which `imp` was deprecated in favor of in Python 3.4.

The portion of the documentation that says this is in the gray aside box at the bottom of Section 6.1 immediately before Section 6.1.1.

These are the pages that have this issue:
Python 3.4: https://docs.python.org/3.4/tutorial/modules.html#more-on-modules
Python 3.5: https://docs.python.org/3.5/tutorial/modules.html#more-on-modules
Python 3.6: https://docs.python.org/3.6/tutorial/modules.html#more-on-modules
msg258444 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-01-17 02:44
New changeset 31e6d4d25b8e by Senthil Kumaran in branch '3.5':
Issue26135 - In the tutorial section on modules, reference importlib.reload instead of imp.reload.
https://hg.python.org/cpython/rev/31e6d4d25b8e

New changeset 6636d688bbd3 by Senthil Kumaran in branch 'default':
merge from 3.5
https://hg.python.org/cpython/rev/6636d688bbd3
msg258445 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2016-01-17 02:46
Thank you for the report. Fixed in the active versions of python (3.5 and 3.6). 3.4 was in security fix mode. Although, it can see important documentation bug-fixes, this isn't bug-fix as far as 3.4 version is concerned. So, I didn't make the change in 3.4.
History
Date User Action Args
2022-04-11 14:58:26adminsetgithub: 70323
2016-01-17 02:46:18orsenthilsetstatus: open -> closed

assignee: docs@python -> orsenthil
versions: - Python 3.4
nosy: + orsenthil

messages: + msg258445
resolution: fixed
stage: resolved
2016-01-17 02:44:06python-devsetnosy: + python-dev
messages: + msg258444
2016-01-17 01:08:48camconncreate