Skip to content

imp doc should direct to importlib #61337

Closed

Description

@merwok
BPO 17135
Nosy @brettcannon, @merwok, @bitdancer, @ericsnowcurrently
Files
  • patch.diff: Patch for imp.rst
  • 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 = None
    closed_at = <Date 2013-04-18.13:54:33.883>
    created_at = <Date 2013-02-05.16:09:41.571>
    labels = ['easy', 'type-feature', 'docs']
    title = 'imp doc should direct to importlib'
    updated_at = <Date 2013-04-18.13:54:33.881>
    user = 'https://github.com/merwok'

    bugs.python.org fields:

    activity = <Date 2013-04-18.13:54:33.881>
    actor = 'r.david.murray'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2013-04-18.13:54:33.883>
    closer = 'r.david.murray'
    components = ['Documentation']
    creation = <Date 2013-02-05.16:09:41.571>
    creator = 'eric.araujo'
    dependencies = []
    files = ['29697']
    hgrepos = []
    issue_num = 17135
    keywords = ['patch', 'easy']
    message_count = 7.0
    messages = ['181450', '181480', '186165', '186950', '187214', '187249', '187250']
    nosy_count = 7.0
    nosy_names = ['brett.cannon', 'eric.araujo', 'r.david.murray', 'docs@python', 'python-dev', 'eric.snow', 'ktran13']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue17135'
    versions = ['Python 3.3', 'Python 3.4']

    Activity

    1. merwok commented on Feb 5, 2013

      @merwok
      MemberAuthor

      Title says it all.

    2. added
      docsDocumentation in the Doc dir
      on Feb 5, 2013
    3. ericsnowcurrently commented on Feb 5, 2013

      @ericsnowcurrently
      Member

      Agreed. It should also link to the new import section in the language reference rather than to the import statement.

    4. ktran13 commented on Apr 6, 2013

      ktran13mannequin
      Mannequin

      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!

    5. bitdancer commented on Apr 14, 2013

      @bitdancer
      Member

      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.

    6. python-dev commented on Apr 17, 2013

      python-devmannequin
      Mannequin

      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

    7. python-dev commented on Apr 18, 2013

      python-devmannequin
      Mannequin

      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

    8. bitdancer commented on Apr 18, 2013

      @bitdancer
      Member

      Thanks, Kristian.

    9. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      docsDocumentation in the Doc direasytype-featureA feature request or enhancement

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions