New submission from Myungbae Son <nedsoci...@gmail.com>:
>>> import os >>> r, w = os.pipe() >>> os.lseek(w, 10, 0) 10 >>> wf = open(w, 'w') >>> wf.seekable() True This happens on Windows. Consequently seek() works for these objects but they seems to be no-op. This may confuse libraries that depend on seeking. The named pipe objects (via CreateNamedPipe -> open_osfhandle -> open()) exhibit the same behavior. ---------- components: IO messages: 382746 nosy: nedsociety priority: normal severity: normal status: open title: seekable() returns True on pipe objects in Windows type: behavior versions: Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42602> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com