[issue18868] Python3 unbuffered stdin

2013-08-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed, this is not related to sys.stdin, but to Popen's own buffering, and the fix is either to pass "bufsize=0" or to flush() when you need to. I'm closing as invalid, don't hesitate to re-open if I misunderstood something. -- nosy: +pitrou resolutio

[issue18868] Python3 unbuffered stdin

2013-08-28 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray versions: -Python 3.1, Python 3.2, Python 3.5 ___ Python tracker ___ ___ Python

[issue18868] Python3 unbuffered stdin

2013-08-28 Thread Richard Oudkerk
Richard Oudkerk added the comment: Try using Popen(..., bufsize=0). -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18868] Python3 unbuffered stdin

2013-08-28 Thread Joe Borg
New submission from Joe Borg: I'm in need of an unbuffered stdin for Python3. Using the '-u' flag worked fine in Python2. But, it seems, Python3's stdin is always buffered; as seen in http://bugs.python.org/issue4705. This is not always desirable. For example: #!/bin/python3 import os, sub

[issue18868] Python3 unbuffered stdin

2013-08-28 Thread Joe Borg
Changes by Joe Borg : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.