Skip to content

Commit def2841

Browse files
Add a What's New entry
1 parent cdb1b1d commit def2841

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Doc/whatsnew/3.16.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,13 @@ that may require changes to your code.
819819
:exc:`TypeError`.
820820
(Contributed by Serhiy Storchaka in :gh:`152587`.)
821821

822+
* On Windows, seeking a pipe now fails instead of silently appearing to
823+
succeed: :func:`os.lseek` and :meth:`~io.IOBase.seek` raise :exc:`OSError`,
824+
and :meth:`~io.IOBase.seekable` returns ``False``. As a consequence,
825+
opening a pipe in a read-write binary mode (``'r+b'`` or ``'w+b'``) now
826+
raises :exc:`io.UnsupportedOperation` unless buffering is disabled.
827+
(Contributed by An Long in :gh:`86768`.)
828+
822829

823830
Build changes
824831
=============

0 commit comments

Comments
 (0)