Skip to content

Commit cdb1b1d

Browse files
Describe the change and its consequences in the NEWS entry
1 parent c6556fe commit cdb1b1d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1-
:exc:`OSError` will be raised if call :func:`os.lseek` with non seekable
2-
object on Windows.
1+
:func:`os.lseek` and :meth:`~io.IOBase.seek` of file objects now raise
2+
:exc:`OSError` for pipes on Windows, and :meth:`~io.IOBase.seekable` now
3+
returns ``False`` for them. Previously seeking a pipe silently appeared to
4+
succeed. As a consequence, opening a pipe in a read-write binary mode
5+
(``'r+b'`` or ``'w+b'``) now raises :exc:`io.UnsupportedOperation` unless
6+
buffering is disabled.

0 commit comments

Comments
 (0)