Skip to content

zipfile.Path.name uses inappropriate Windows semantics #123693

Closed

Description

@jaraco

Bug report

Bug description:

In #123426 (comment), we learned that Python 3.10 (only) ended up with a version of zipfile.Path that uses pathlib.Path (platform-variable) behavior for parsing the name. As a result, zipfiles with names like V: foo or foo\bar get incorrect names and are thus broken.

This issue was revealed by applying additional tests for GH-123270.

The issue was corrected incidentally in zipp 3.16.2 and Python 3.11. The issue does not affect Python 3.9.

CPython versions tested on:

3.10

Operating systems tested on:

Windows

Linked PRs

Activity

  1. added 2 commits that reference this issue on Sep 4, 2024
  2. added a commit that references this issue on Sep 5, 2024
  3. hugovk commented on Sep 15, 2024

    @hugovk
    Member

    PR merged, closing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions