Python Program Help

Elias Fotinis efotinis at gmail.com
Wed Jul 22 07:44:14 EDT 2020


On 21/07/2020 22:25, Terry Reedy wrote:
> The only way I discovered to get that error, on Windows, is to hit 
> control-D in response to the prompt.

Slight correction: On Windows, EOF is signaled with Ctrl-Z. This is the 
same as hitting F6 in the legacy console (can't check with Win10 at the 
moment, but I believe it's the same there).

Ctrl-D (the Unixy EOF) is returned simply as '\x04' on Windows.



More information about the Python-list mailing list