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

Appearance settings

[3.11] gh-101144: Allow zipfile.Path .open & .read_text encoding to be positional#101179

Merged
gpshead merged 2 commits into
python:3.11python/cpython:3.11from
gpshead:backport-5927013-3.11gpshead/cpython:backport-5927013-3.11Copy head branch name to clipboard
Jan 20, 2023
Merged

[3.11] gh-101144: Allow zipfile.Path .open & .read_text encoding to be positional#101179
gpshead merged 2 commits into
python:3.11python/cpython:3.11from
gpshead:backport-5927013-3.11gpshead/cpython:backport-5927013-3.11Copy head branch name to clipboard

Conversation

@gpshead

@gpshead gpshead commented Jan 20, 2023

Copy link
Copy Markdown
Member

The zipfile.Path open() and read_text() encoding parameter can be supplied as a positional argument without causing a TypeError again. 3.10.0b1 included a regression that made it keyword only.

Documentation update included as users writing code to be compatible with a wide range of versions will need to consider this for some time.. (cherry picked from commit 5927013)

Co-authored-by: Gregory P. Smith greg@krypto.org [Google]

…ional. (pythonGH-101145)

The zipfile.Path open() and read_text() encoding parameter can be supplied as a positional argument without causing a TypeError again. 3.10.0b1 included a regression that made it keyword only.

Documentation update included as users writing code to be compatible with a wide range of versions will need to consider this for some time..
(cherry picked from commit 5927013)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
@gpshead gpshead merged commit efe3a38 into python:3.11 Jan 20, 2023
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @gpshead for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

@gpshead gpshead deleted the backport-5927013-3.11 branch January 20, 2023 08:06
@bedevere-bot

Copy link
Copy Markdown

GH-101182 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Jan 20, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 20, 2023
…g to be positional (pythonGH-101179)

The zipfile.Path open() and read_text() encoding parameter can be supplied as a positional argument without causing a TypeError again. 3.10.0b1 included a regression that made it keyword only.

Documentation update included as users writing code to be compatible with a wide range of versions will need to consider this for some time..

(cherry picked from commit 5927013)

(cherry picked from commit efe3a38)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
@bedevere-bot

Copy link
Copy Markdown

GH-101182 is a backport of this pull request to the 3.10 branch.

miss-islington added a commit that referenced this pull request Jan 20, 2023
…e positional (GH-101179) (GH-101182)

The zipfile.Path open() and read_text() encoding parameter can be supplied as a positional argument without causing a TypeError again. 3.10.0b1 included a regression that made it keyword only.

Documentation update included as users writing code to be compatible with a wide range of versions will need to consider this for some time..

(cherry picked from commit 5927013)
(cherry picked from commit efe3a38)

Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]

Automerge-Triggered-By: GH:gpshead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.