Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Path.from_uri() doesn't work if the URI contains host component #123599

Closed
Labels
3.13bugs and security fixes3.14bugs and security fixestopic-pathlibtype-bugAn unexpected behavior, bug, or error
@pekkaklarck

Description

@pekkaklarck

Bug report

Bug description:

Path.from_uri() introduced in Python 3.13 doesn't work properly if the URI contains a host component other thanlocalhost. Following examples are run with Python 3.13 rc 1 on Linux with a machine having host namekone:

>>>print(Path().from_uri('file:///home/peke/test'))/home/peke/test>>>print(Path().from_uri('file://localhost/home/peke/test'))/home/peke/test>>>print(Path().from_uri(f'file://{socket.getfqdn()}/home/peke/test'))//kone/home/peke/test

According toRFC 8089 including the host component as a fully qualified name is fine so this looks like a bug to me.

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixestopic-pathlibtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp