[New-bugs-announce] [issue8213] Python 3 ignored PYTHONUNBUFFERED and -u
Noam Yorav-Raphael
report at bugs.python.org
Tue Mar 23 16:20:14 CET 2010
New submission from Noam Yorav-Raphael <noamraph at gmail.com>:
Hello,
Python 3.1 ignored the PYTHONUNBUFFERED environment variable and the '-u' switch (which do the same thing): stdout remains buffered even when the flag is raised.
To reproduce, run:
> python3 -u -c 'import time, sys; sys.stdout.write("a"); time.sleep(1); sys.stdout.write("\n")'
You can see that it first waits a second and then 'a' is printed.
I'm using Ubuntu 9.10. Tested this on both the 3.1.1 installed and svn checkout (revision 79345).
This follows a bug report: https://bugs.launchpad.net/dreampie/+bug/545012
which was reported on win32, so the problem is there too.
----------
components: IO
messages: 101584
nosy: noam
severity: normal
status: open
title: Python 3 ignored PYTHONUNBUFFERED and -u
type: behavior
versions: Python 3.1
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8213>
_______________________________________
More information about the New-bugs-announce
mailing list