Can't exit python with ^D under certain circumstances

Adam Sampson azz at gnu.org
Sat Dec 29 19:52:00 CET 2001


"Steve Holden" <sholden at holdenweb.com> writes:

> The real question is why the end of file you send to your local ssh
> client doesn't make it through to the Python interpreter as an EOF,
> but instead (apparently) gets transmitted as a character.

Perhaps Ctrl-D isn't the default EOF character on his system?
"stty -a" should show what eof is set to; to change it to Ctrl-D, do
"stty eof '^D'".

I've run into this before with intr being set to ^? instead of ^C on
an old HP machine...

-- 
Adam Sampson <azz at gnu.org>                  <URL:http://azz.us-lot.org/>



More information about the Python-list mailing list