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 docs for importlib.util.resolve_name() to use __spec__.parent instead of __package__ #86977

Closed
brettcannon opened this issue Jan 2, 2021 · 4 comments
Assignees
Labels
3.10 only security fixes docs Documentation in the Doc dir easy

Comments

@brettcannon
Copy link
Member

BPO 42811
Nosy @brettcannon, @miss-islington, @Fongeme
PRs
  • bpo-42811: Update importlib.utils.resolve_name() docs to use __spec__.parent #24100
  • [3.8] bpo-42811: Update importlib.utils.resolve_name() docs to use __spec__.parent (GH-24100) #24144
  • [3.9] bpo-42811: Update importlib.utils.resolve_name() docs to use __spec__.parent (GH-24100) #24149
  • 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-01-06.17:42:44.601>
    created_at = <Date 2021-01-02.20:27:58.993>
    labels = ['easy', '3.10', 'docs']
    title = 'Update docs for importlib.util.resolve_name() to use __spec__.parent instead of __package__'
    updated_at = <Date 2021-01-07.18:07:56.906>
    user = 'https://github.com/brettcannon'

    bugs.python.org fields:

    activity = <Date 2021-01-07.18:07:56.906>
    actor = 'brett.cannon'
    assignee = 'brett.cannon'
    closed = True
    closed_date = <Date 2021-01-06.17:42:44.601>
    closer = 'brett.cannon'
    components = ['Documentation']
    creation = <Date 2021-01-02.20:27:58.993>
    creator = 'brett.cannon'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 42811
    keywords = ['patch', 'easy']
    message_count = 4.0
    messages = ['384238', '384525', '384598', '384599']
    nosy_count = 3.0
    nosy_names = ['brett.cannon', 'miss-islington', 'Fongeme']
    pr_nums = ['24100', '24144', '24149']
    priority = 'low'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue42811'
    versions = ['Python 3.10']

    @brettcannon
    Copy link
    Member Author

    Since importlib now prefers __spec__ over __package__, https://docs.python.org/3/library/importlib.html#importlib.util.resolve_name should be updated to use __spec__.parent instead in the. example.

    @brettcannon brettcannon added the 3.10 only security fixes label Jan 2, 2021
    @brettcannon brettcannon self-assigned this Jan 2, 2021
    @brettcannon brettcannon added docs Documentation in the Doc dir easy 3.10 only security fixes labels Jan 2, 2021
    @brettcannon brettcannon self-assigned this Jan 2, 2021
    @brettcannon brettcannon added docs Documentation in the Doc dir easy labels Jan 2, 2021
    @brettcannon brettcannon changed the title Update docs for importlib.util.resolve_name() to use __spec__ instead of __package__ Update docs for importlib.util.resolve_name() to use __spec__.parent instead of __package__ Jan 6, 2021
    @brettcannon brettcannon changed the title Update docs for importlib.util.resolve_name() to use __spec__ instead of __package__ Update docs for importlib.util.resolve_name() to use __spec__.parent instead of __package__ Jan 6, 2021
    @miss-islington
    Copy link
    Contributor

    New changeset ff8458b by Yair Frid in branch 'master':
    bpo-42811: Update importlib.utils.resolve_name() docs to use __spec__.parent (GH-24100)
    ff8458b

    @miss-islington
    Copy link
    Contributor

    New changeset 8c3914a by Yair Frid in branch '3.9':
    [3.9] bpo-42811: Update importlib.utils.resolve_name() docs to use __spec__.parent (GH-24100) (GH-24149)
    8c3914a

    @brettcannon
    Copy link
    Member Author

    New changeset ca8e96d by Miss Islington (bot) in branch '3.8':
    bpo-42811: Update importlib.utils.resolve_name() docs to use __spec__.parent (GH-24100) (GH-24144)
    ca8e96d

    @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 only security fixes docs Documentation in the Doc dir easy
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants