open() and EOFError

Tim Chase python.list at tim.thechases.com
Tue Jul 8 17:20:33 CEST 2014


On 2014-07-08 11:08, Terry Reedy wrote:
> > Indeed.  Ctrl-D is _the_ canonical way to tell a program that's
> > reading stdin that your're done.  
> 
> Not on Windows.

Okay, EOF is the canonical way to tell a program reading stdin that
you're done.  It just happens that EOF ^D on *nix-likes and ^Z on
Win32. :-)

-tkc





More information about the Python-list mailing list