Issue 18034: Last two entries in the programming FAQ are out of date (import related)
Created on 2013-05-22 17:35 by r.david.murray, last changed 2022-04-11 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| faq-import_module.diff | larstiq, 2014-08-03 07:22 | |||
| Messages (7) | |||
|---|---|---|---|
| msg189827 - (view) | Author: R. David Murray (r.david.murray) * ![]() |
Date: 2013-05-22 17:35 | |
The second to last talks about the __import__ quirk with out calling __import__ out as deprecated. The last uses the imp module for reload. |
|||
| msg190819 - (view) | Author: Ezio Melotti (ezio.melotti) * ![]() |
Date: 2013-06-08 19:45 | |
imp.reload() doesn't seem to be deprecated, and importlib.reload() doesn't exist. Is there another alternative or it just hasn't been moved somewhere else? |
|||
| msg190822 - (view) | Author: Ezio Melotti (ezio.melotti) * ![]() |
Date: 2013-06-08 19:48 | |
FTR here is a link to the FAQs: http://docs.python.org/3/faq/programming.html#import-x-y-z-returns-module-x-how-do-i-get-z |
|||
| msg190836 - (view) | Author: Brett Cannon (brett.cannon) * ![]() |
Date: 2013-06-08 22:35 | |
Hasn't been moved yet. And the __import__ question should probably be rephrased as "don't do this". |
|||
| msg224614 - (view) | Author: Wouter van Heyst (larstiq) * | Date: 2014-08-03 07:22 | |
The attached patch changes the body of the __import__ faq entry to suggest using `importlib.import_module` instead. |
|||
| msg224745 - (view) | Author: Roundup Robot (python-dev) ![]() |
Date: 2014-08-04 16:36 | |
New changeset 815f1a69283e by Ezio Melotti in branch '3.4': #18034: update FAQ to suggest importlib.import_module instead of __import__. Patch by Wouter van Heyst. http://hg.python.org/cpython/rev/815f1a69283e New changeset f78ef3819d67 by Ezio Melotti in branch 'default': #18034: merge with 3.4. http://hg.python.org/cpython/rev/f78ef3819d67 New changeset 46c7a724b487 by Ezio Melotti in branch '2.7': #18034: update FAQ to suggest importlib.import_module instead of __import__. Patch by Wouter van Heyst. http://hg.python.org/cpython/rev/46c7a724b487 |
|||
| msg224746 - (view) | Author: Ezio Melotti (ezio.melotti) * ![]() |
Date: 2014-08-04 16:37 | |
Fixed, thanks for the patch! The other FAQ got fixed in #17177/3d3b9d456eb8. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:57:45 | admin | set | github: 62234 |
| 2014-08-04 16:37:33 | ezio.melotti | set | status: open -> closed versions: + Python 2.7 messages: + msg224746 assignee: docs@python -> ezio.melotti |
| 2014-08-04 16:36:05 | python-dev | set | nosy:
+ python-dev messages: + msg224745 |
| 2014-08-03 07:22:24 | larstiq | set | files:
+ faq-import_module.diff nosy:
+ larstiq keywords: + patch |
| 2013-06-08 22:35:29 | brett.cannon | set | dependencies: + Deprecate imp |
| 2013-06-08 22:35:23 | brett.cannon | set | messages: + msg190836 |
| 2013-06-08 19:48:40 | ezio.melotti | set | messages: + msg190822 |
| 2013-06-08 19:45:59 | ezio.melotti | set | messages: + msg190819 |
| 2013-05-26 13:36:13 | ezio.melotti | set | nosy:
+ ezio.melotti |
| 2013-05-22 17:35:15 | r.david.murray | create | |

