Georg Brandl ge...@python.org added the comment:
I've fixed the using/cmdline and manpage to describe the current behavior.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8213
Noam Yorav-Raphael noamr...@gmail.com added the comment:
I typed man python3 on ubuntu 9.10 and nothing was explained about that - I
now checked and found out that it displayed the python2 man page. I don't know
where to find the Python 3 man page.
I don't quite see the point in having the
Antoine Pitrou pit...@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
Noam Yorav-Raphael noamr...@gmail.com added the comment:
I can call flush() after the user code was executed, but a code like this:
for i in range(10):
... print(i, end=' ')
... time.sleep(1)
will show the numbers only after 10 seconds, while I would like a number
printed every
STINNER Victor victor.stin...@haypocalc.com added the comment:
Use :
... print(i, end=' ')
... sys.stdout.flush()
... time.sleep(1)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8213
New submission from Noam Yorav-Raphael noamr...@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;
STINNER Victor victor.stin...@haypocalc.com added the comment:
-u is not ignored, but use line buffering: see issue #4705 and commit r68977.
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8213
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8213
___
___
Antoine Pitrou pit...@free.fr added the comment:
In the current state of affaires this is more of a documentation issue.
Python 3 doesn't support totally unbuffered text I/O (and standard streams are
open in text mode). What `-u` and PYTHONUNBUFFERED do is that the binary layer
of standard
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: - georg.brandl
components: +Documentation -IO
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8213
___
10 matches
Mail list logo