Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jan 20, 2023

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 [email protected] [Google]

Automerge-Triggered-By: GH:gpshead

…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 <[email protected]>
Co-authored-by: Gregory P. Smith <[email protected]> [Google]
@gpshead gpshead changed the title [3.10] [3.11] gh-101144: Allow zipfile.Path .open & .read_text encoding to be positional (GH-101179) [3.10] gh-101144: Allow zipfile.Path .open & .read_text encoding to be positional (GH-101179) Jan 20, 2023
@gpshead gpshead self-assigned this Jan 20, 2023
@gpshead gpshead added type-bug An unexpected behavior, bug, or error stdlib Standard Library Python modules in the Lib/ directory labels Jan 20, 2023
@miss-islington
Copy link
Contributor Author

Status check is done, and it's a success ✅.

@miss-islington miss-islington merged commit b2a662f into python:3.10 Jan 20, 2023
@miss-islington miss-islington deleted the backport-efe3a38-3.10 branch January 20, 2023 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stdlib Standard Library Python modules in the Lib/ directory type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants