You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2013-04-18.13:54:33.883>created_at=<Date2013-02-05.16:09:41.571>labels= ['easy', 'type-feature', 'docs']
title='imp doc should direct to importlib'updated_at=<Date2013-04-18.13:54:33.881>user='https://github.com/merwok'
Thanks, Kristian. The 3.x docs were a "fresh start", so if we want to mark something as deprecated it would be a Python3 version number, the number current at the time of the deprecation.
There is another open issue, 17177, that speaks specifically about deprecating the module, but it sounds like a documentation deprecation to start with is a good idea; I believe that at this point all the imp functions can be replicated with suitable importlib calls (Eric can correct me if I'm wrong). It would thus be as of version 3.4, at this point, since we didn't do it before the 3.3 release.
This issue also mentions linking to "importlib instead of the import statement", which refers to the ':keyword:`import`' statement in the title.
Do you want to resubmit the patch with those changes? Otherwise I can just make them when I commit it.
Activity
merwok commentedon Feb 5, 2013
Title says it all.
ericsnowcurrently commentedon Feb 5, 2013
Agreed. It should also link to the new import section in the language reference rather than to the import statement.
ktran13 commentedon Apr 6, 2013
Here is the patch for this bug... Enjoy! I would be happy to work on this further if there are any problems or questions! Thanks!
bitdancer commentedon Apr 14, 2013
Thanks, Kristian. The 3.x docs were a "fresh start", so if we want to mark something as deprecated it would be a Python3 version number, the number current at the time of the deprecation.
There is another open issue, 17177, that speaks specifically about deprecating the module, but it sounds like a documentation deprecation to start with is a good idea; I believe that at this point all the imp functions can be replicated with suitable importlib calls (Eric can correct me if I'm wrong). It would thus be as of version 3.4, at this point, since we didn't do it before the 3.3 release.
This issue also mentions linking to "importlib instead of the import statement", which refers to the ':keyword:`import`' statement in the title.
Do you want to resubmit the patch with those changes? Otherwise I can just make them when I commit it.
python-dev commentedon Apr 17, 2013
New changeset f22c463ce73c by R David Murray in branch 'default':
bpo-17135: mark imp as deprecated as of 3.4.
http://hg.python.org/cpython/rev/f22c463ce73c
python-dev commentedon Apr 18, 2013
New changeset 8f15a46a8c76 by R David Murray in branch '3.3':
bpo-17135: Add note in imp to use importlib for new programs.
http://hg.python.org/cpython/rev/8f15a46a8c76
bitdancer commentedon Apr 18, 2013
Thanks, Kristian.