[pypy-issue] [issue872] getpass.unix_getpass fails with "IOError: [Errno 29] Illegal seek: '<fdopen>'"

Armin Rigo tracker at bugs.pypy.org
Sun Sep 18 12:07:32 CEST 2011

Armin Rigo <armin.rigo at gmail.com> added the comment:

I wrote too quickly, based on observation.  But looking at the source code and
"man fflush", the issue seems to be really that fflush() only flushes the output
buffers, not the input buffers, whereas streamio.py will "flush" the input
buffers too and do a small seek backward to compensate.  I think that we should
just kill this behavior, unless there are interesting counter-examples for why
we should not.

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list