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

Update the stdlib to fall back to __spec__.loader if __loader__ isn't defined #86299

Closed
brettcannon opened this issue Oct 23, 2020 · 2 comments
Closed
Labels
3.10 stdlib type-bug

Comments

@brettcannon
Copy link
Member

@brettcannon brettcannon commented Oct 23, 2020

BPO 42133
Nosy @brettcannon
PRs
  • #22929
  • 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 2020-11-09.21:18:14.847>
    created_at = <Date 2020-10-23.22:46:40.277>
    labels = ['type-bug', 'library', '3.10']
    title = "Update the stdlib to fall back to __spec__.loader if __loader__ isn't defined"
    updated_at = <Date 2020-11-09.21:18:14.846>
    user = 'https://github.com/brettcannon'

    bugs.python.org fields:

    activity = <Date 2020-11-09.21:18:14.846>
    actor = 'brett.cannon'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-11-09.21:18:14.847>
    closer = 'brett.cannon'
    components = ['Library (Lib)']
    creation = <Date 2020-10-23.22:46:40.277>
    creator = 'brett.cannon'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 42133
    keywords = ['patch']
    message_count = 2.0
    messages = ['379486', '380491']
    nosy_count = 1.0
    nosy_names = ['brett.cannon']
    pr_nums = ['22929']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue42133'
    versions = ['Python 3.10']

    @brettcannon
    Copy link
    Member Author

    @brettcannon brettcannon commented Oct 23, 2020

    By making sure the stdlib can handle the case where __loader__ isn't defined but __spec__.parent is, eventually the former could be dropped for the latter.

    @brettcannon brettcannon added 3.10 stdlib type-bug labels Oct 23, 2020
    @brettcannon
    Copy link
    Member Author

    @brettcannon brettcannon commented Nov 7, 2020

    New changeset 825ac38 by Brett Cannon in branch 'master':
    bpo-42133: update parts of the stdlib to fall back to __spec__.loader when __loader__ is missing (bpo-22929)
    825ac38

    @brettcannon brettcannon changed the title Update the stdlib to fall back to __spec__.parent if __loader__ isn't defined Update the stdlib to fall back to __spec__.loader if __loader__ isn't defined Nov 9, 2020
    @brettcannon brettcannon changed the title Update the stdlib to fall back to __spec__.parent if __loader__ isn't defined Update the stdlib to fall back to __spec__.loader if __loader__ isn't defined Nov 9, 2020
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.10 stdlib type-bug
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant