Flush stdin
Dan Stromberg
drsalists at gmail.com
Mon Oct 20 17:59:29 EDT 2014
More information about the Python-list mailing list
Mon Oct 20 17:59:29 EDT 2014
- Previous message (by thread): Flush stdin
- Next message (by thread): Flush stdin
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, Oct 19, 2014 at 9:45 PM, Marko Rauhamaa <marko at pacujo.net> wrote: > I found this comment in CPython's source code (pythonrun.c): > > /* stdin is always opened in buffered mode, first because it shouldn't > make a difference in common use cases, second because TextIOWrapper > depends on the presence of a read1() method which only exists on > buffered streams. > */ > > The solution is to use os.read(). Seriously?
- Previous message (by thread): Flush stdin
- Next message (by thread): Flush stdin
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list