Skip to content

Last two entries in the programming FAQ are out of date (import related) #62234

Closed

Description

@bitdancer
BPO 18034
Nosy @brettcannon, @ezio-melotti, @bitdancer, @ericsnowcurrently
Dependencies
  • bpo-17177: Deprecate imp
  • Files
  • faq-import_module.diff
  • 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 = 'https://github.com/ezio-melotti'
    closed_at = <Date 2014-08-04.16:37:33.557>
    created_at = <Date 2013-05-22.17:35:15.547>
    labels = ['type-bug', 'docs']
    title = 'Last two entries in the programming FAQ are out of date (import related)'
    updated_at = <Date 2014-08-04.16:37:33.555>
    user = 'https://github.com/bitdancer'

    bugs.python.org fields:

    activity = <Date 2014-08-04.16:37:33.555>
    actor = 'ezio.melotti'
    assignee = 'ezio.melotti'
    closed = True
    closed_date = <Date 2014-08-04.16:37:33.557>
    closer = 'ezio.melotti'
    components = ['Documentation']
    creation = <Date 2013-05-22.17:35:15.547>
    creator = 'r.david.murray'
    dependencies = ['17177']
    files = ['36227']
    hgrepos = []
    issue_num = 18034
    keywords = ['patch']
    message_count = 7.0
    messages = ['189827', '190819', '190822', '190836', '224614', '224745', '224746']
    nosy_count = 7.0
    nosy_names = ['brett.cannon', 'ezio.melotti', 'r.david.murray', 'docs@python', 'python-dev', 'eric.snow', 'larstiq']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue18034'
    versions = ['Python 2.7', 'Python 3.3', 'Python 3.4']

    Activity

    1. bitdancer commented on May 22, 2013

      @bitdancer
      MemberAuthor

      The second to last talks about the __import__ quirk with out calling __import__ out as deprecated. The last uses the imp module for reload.

    2. added
      docsDocumentation in the Doc dir
      type-bugAn unexpected behavior, bug, or error
      on May 22, 2013
    3. ezio-melotti commented on Jun 8, 2013

      @ezio-melotti
      Member

      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?

    4. ezio-melotti commented on Jun 8, 2013

      @ezio-melotti
      Member
    5. brettcannon commented on Jun 8, 2013

      @brettcannon
      Member

      Hasn't been moved yet. And the __import__ question should probably be rephrased as "don't do this".

    6. larstiq commented on Aug 3, 2014

      larstiqmannequin
      Mannequin

      The attached patch changes the body of the import faq entry to suggest using importlib.import_module instead.

    7. python-dev commented on Aug 4, 2014

      python-devmannequin
      Mannequin

      New changeset 815f1a69283e by Ezio Melotti in branch '3.4':
      bpo-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':
      bpo-18034: merge with 3.4.
      http://hg.python.org/cpython/rev/f78ef3819d67

      New changeset 46c7a724b487 by Ezio Melotti in branch '2.7':
      bpo-18034: update FAQ to suggest importlib.import_module instead of __import__. Patch by Wouter van Heyst.
      http://hg.python.org/cpython/rev/46c7a724b487

    8. ezio-melotti commented on Aug 4, 2014

      @ezio-melotti
      Member

      Fixed, thanks for the patch!
      The other FAQ got fixed in bpo-17177/3d3b9d456eb8.

    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

    Labels

    docsDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions