jaraco / jaraco/zipp

`Path.open()` signature differs from pathlib, open() builtin

Open Beginner friendly
#128 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
67
Forks
68
PR merge metrics
No merged PRs in 30d

Description

If I call zipp.Path.open('r', 1), the last argument is interpreted as an encoding argument, whereas in pathlib.Path.open('r', 1) and open('foo', 'r', 1) the last argument is interpreted as a buffering argument.

Could the signature be adjusted to match pathlib and io? Thank you

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the zipp.Path.open() entry point and compare its argument handling with pathlib.Path.open() and the open() builtin. Verify that the positional argument after mode is treated as buffering rather than encoding, and add or update coverage so the matching behavior is clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.