]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-101144: Allow open and read_text encoding to be positional. (#101145)
authorGregory P. Smith <greg@krypto.org>
Fri, 20 Jan 2023 07:04:30 +0000 (23:04 -0800)
committerGitHub <noreply@github.com>
Fri, 20 Jan 2023 07:04:30 +0000 (23:04 -0800)
commit5927013e47a8c63b70e104152351f3447baa819c
tree277eabd54cc4d1755178ff3ba3a8ea779d25528a
parent9e025d305f159aebf01775ad1dc2817679f01aa9
gh-101144: Allow open and read_text encoding to be positional. (#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.
Doc/library/zipfile.rst
Lib/test/test_zipfile/test_path.py
Lib/zipfile/_path.py
Misc/NEWS.d/next/Library/2023-01-18-17-58-50.gh-issue-101144.FHd8Un.rst [new file with mode: 0644]