Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[importlib] Deprecate find_module() & find_loader() mplementations #86301

Closed
brettcannon opened this issue Oct 23, 2020 · 6 comments
Closed

[importlib] Deprecate find_module() & find_loader() mplementations #86301

brettcannon opened this issue Oct 23, 2020 · 6 comments
Assignees
Labels
3.10 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@brettcannon
Copy link
Member

BPO 42135
Nosy @brettcannon, @hugovk, @miss-islington
PRs
  • bpo-42135: Deprecate implementations of find_module() and find_loader() #25169
  • bpo-42135 Correct version slated for importlib.find_loader removal #28312
  • [3.10] bpo-42135 Correct version slated for importlib.find_loader removal (GH-28312) #28321
  • Dependencies
  • bpo-42134: Raise ImportWarning when falling back to find_module()
  • 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/brettcannon'
    closed_at = <Date 2021-04-06.15:57:17.076>
    created_at = <Date 2020-10-23.23:11:35.528>
    labels = ['type-bug', 'library', '3.10']
    title = '[importlib] Deprecate find_module() & find_loader() mplementations'
    updated_at = <Date 2021-09-13.23:33:13.286>
    user = 'https://github.com/brettcannon'

    bugs.python.org fields:

    activity = <Date 2021-09-13.23:33:13.286>
    actor = 'brett.cannon'
    assignee = 'brett.cannon'
    closed = True
    closed_date = <Date 2021-04-06.15:57:17.076>
    closer = 'brett.cannon'
    components = ['Library (Lib)']
    creation = <Date 2020-10-23.23:11:35.528>
    creator = 'brett.cannon'
    dependencies = ['42134']
    files = []
    hgrepos = []
    issue_num = 42135
    keywords = ['patch']
    message_count = 5.0
    messages = ['379493', '390142', '390348', '401739', '401742']
    nosy_count = 3.0
    nosy_names = ['brett.cannon', 'hugovk', 'miss-islington']
    pr_nums = ['25169', '28312', '28321']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue42135'
    versions = ['Python 3.10']

    @brettcannon
    Copy link
    Member Author

    find_spec() supersedes find_module() at this point.

    @brettcannon brettcannon added 3.10 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Oct 23, 2020
    @brettcannon brettcannon changed the title [importlib] Deprecate find_module() implementations [importlib] Deprecate find_module() & find_loader() mplementations Apr 2, 2021
    @brettcannon brettcannon changed the title [importlib] Deprecate find_module() implementations [importlib] Deprecate find_module() & find_loader() mplementations Apr 2, 2021
    @brettcannon
    Copy link
    Member Author

    find_spec() also supercedes find_loader().

    @brettcannon
    Copy link
    Member Author

    New changeset 57c6cb5 by Brett Cannon in branch 'master':
    bpo-42135: Deprecate implementations of find_module() and find_loader() (GH-25169)
    57c6cb5

    @brettcannon
    Copy link
    Member Author

    New changeset 9f93018 by Hugo van Kemenade in branch 'main':
    bpo-42135 Correct version slated for importlib.find_loader removal (GH-28312)
    9f93018

    @brettcannon
    Copy link
    Member Author

    New changeset a390bb6 by Miss Islington (bot) in branch '3.10':
    bpo-42135 Correct version slated for importlib.find_loader removal (GH-28312) (GH-28321)
    a390bb6

    @vstinner
    Copy link
    Member

    Follow-up: issue #94379: zipimport: Remove deprecated find_loader() and find_module() methods, use find_spec() instead.

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.10 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants