[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u
Antoine Pitrou
report at bugs.python.org
Wed Mar 24 14:09:16 CET 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
> I don't quite see the point in having the streams buffered in one
> level and unbuffered in another, but I guess there's a reason.
The reason is simply that it wasn't implemented. Unbuffered I/O isn't
useful very often.
> Anyway, how can I make those streams entirely unbuffered? This is for
> an interactive shell called DreamPie (dreampie.sourceforge.net), and I
> want to resemble the behavior of the regular shell as close as
> possible, and it's completely unbuffered.
You can just call flush() after each write to stdout or stderr.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8213>
_______________________________________
More information about the Python-bugs-list
mailing list