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 importlib to accept pathlib.Path objects #70854

Closed
brettcannon opened this issue Mar 29, 2016 · 4 comments
Closed

Update importlib to accept pathlib.Path objects #70854

brettcannon opened this issue Mar 29, 2016 · 4 comments
Assignees
Labels
type-feature A feature request or enhancement

Comments

@brettcannon
Copy link
Member

BPO 26667
Nosy @brettcannon, @bitdancer, @ethanfurman
Dependencies
  • bpo-26027: Support Path objects in the posix 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 2016-09-08.01:41:19.879>
    created_at = <Date 2016-03-29.18:22:54.819>
    labels = ['type-feature']
    title = 'Update importlib to accept pathlib.Path objects'
    updated_at = <Date 2016-09-08.01:41:19.878>
    user = 'https://github.com/brettcannon'

    bugs.python.org fields:

    activity = <Date 2016-09-08.01:41:19.878>
    actor = 'brett.cannon'
    assignee = 'brett.cannon'
    closed = True
    closed_date = <Date 2016-09-08.01:41:19.879>
    closer = 'brett.cannon'
    components = []
    creation = <Date 2016-03-29.18:22:54.819>
    creator = 'brett.cannon'
    dependencies = ['26027']
    files = []
    hgrepos = []
    issue_num = 26667
    keywords = []
    message_count = 4.0
    messages = ['262618', '266661', '266719', '274946']
    nosy_count = 4.0
    nosy_names = ['brett.cannon', 'r.david.murray', 'ethan.furman', 'python-dev']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue26667'
    versions = ['Python 3.6']

    @brettcannon
    Copy link
    Member Author

    We should go through importlib and update the various APIs to accept pathlib.Path objects and not just str.

    @brettcannon brettcannon added the type-feature A feature request or enhancement label Mar 29, 2016
    @bitdancer
    Copy link
    Member

    Brett, is this made obsolete by PEP-519, or is its implementation informed by that PEP?

    @brettcannon
    Copy link
    Member Author

    It's informed. I need to go through the API and see what does or does not makes sense based on PEP-519.

    @brettcannon brettcannon self-assigned this Sep 7, 2016
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Sep 8, 2016

    New changeset 1a36cf6389d8 by Brett Cannon in branch 'default':
    Issue bpo-26667: Add path-like object support to importlib.util.
    https://hg.python.org/cpython/rev/1a36cf6389d8

    @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
    type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants