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

GH-128520: pathlib ABCs: validatemagic_open() arguments#131617

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
barneygale merged 1 commit intopython:mainfrombarneygale:magic-open-errors
Mar 24, 2025

Conversation

barneygale
Copy link
Contributor

@barneygalebarneygale commentedMar 23, 2025
edited by bedevere-appbot
Loading

Whenpathlib._os.magic_open() is called to open a path in binary mode, raiseValueError if any of theencoding,errors ornewline arguments are given. This matches theopen() built-in.

When `pathlib._os.magic_open()` is called to open a path in binary mode,raise `ValueError` if any of the *encoding*, *errors* or *newline*arguments are given. This matches the `open()` built-in.
@barneygalebarneygale merged commitd716ea3 intopython:mainMar 24, 2025
44 checks passed
diegorusso pushed a commit to diegorusso/cpython that referenced this pull requestApr 1, 2025
…hon#131617)When `pathlib._os.magic_open()` is called to open a path in binary mode,raise `ValueError` if any of the *encoding*, *errors* or *newline*arguments are given. This matches the `open()` built-in.
seehwan pushed a commit to seehwan/cpython that referenced this pull requestApr 16, 2025
…hon#131617)When `pathlib._os.magic_open()` is called to open a path in binary mode,raise `ValueError` if any of the *encoding*, *errors* or *newline*arguments are given. This matches the `open()` built-in.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@barneygale

[8]ページ先頭

©2009-2025 Movatter.jp