]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-85524: Raise "UnsupportedOperation" on FileIO.readall (#141214)
authorCody Maloney <cmaloney@users.noreply.github.com>
Wed, 12 Nov 2025 09:37:48 +0000 (01:37 -0800)
committerGitHub <noreply@github.com>
Wed, 12 Nov 2025 09:37:48 +0000 (10:37 +0100)
commit6f988b08d122e44848e89c04ad1e10c25d072cc7
treeefafb9851ade16a4b5f1040a72da7a7b00025631
parent909f76dab91f028edd2ae7bd589d3975996de9e1
gh-85524: Raise "UnsupportedOperation" on FileIO.readall (#141214)

io.UnsupportedOperation is a subclass of OSError and recommended by
io.IOBase for this case; matches other read methods on io.FileIO.
Lib/test/test_io/test_general.py
Misc/NEWS.d/next/Library/2025-11-07-12-25-46.gh-issue-85524.9SWFIC.rst [new file with mode: 0644]
Modules/_io/clinic/fileio.c.h
Modules/_io/fileio.c