GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — zipfile.Path.name uses inappropriate Windows semantics · Issue #123693 · python/cpython

zipfile.Path.name uses inappropriate Windows semantics #123693

New issue
Copy link
New issue
Copy link
Closed
Closed
zipfile.Path.name uses inappropriate Windows semantics#123693
Copy link
Labels
3.10 (EOL)end of lifeend of lifeOS-windowstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@jaraco
jaraco
opened on Sep 4, 2024
Issue body actions

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

  • [3.10] gh-123693: Use platform-agnostic semantics when processing zipfile.Path.name. #123694

Activity

  1. jaraco
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    OS-windows
    3.10 (EOL)end of lifeend of life
    on Sep 4, 2024
  2. jaraco
    added 2 commits that reference this issue on Sep 4, 2024

    [3.10] pythongh-123693: When computing the zipfile.Path.name, use Pur…

    7990bf9

    Merge branch '3.10' into pythongh-123693/platform-agnostic-name

    d7d5cad
  3. ambv
    added a commit that references this issue on Sep 5, 2024

    [3.10] gh-123693: Use platform-agnostic semantics when processing zip…

    4633177
  4. hugovk
    closed this as completedon Sep 15, 2024
  5. hugovk commented on Sep 15, 2024

    @hugovk
    hugovk
    on Sep 15, 2024
    Member
    More actions

    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

    3.10 (EOL)end of lifeend of lifeOS-windowstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.