[Baypiggies] Control-D to exit

Aahz aahz at pythoncraft.com
Wed Jul 26 14:48:50 CEST 2006

On Wed, Jul 26, 2006, Bibha Tripathi wrote:
> Does CTRL-D not take me out of the Python interpreter anymore? Has
> something changed about Python in 2.4.3 on Win32?
> Now I have to do ^z and then press enter to come out of the
> interpreter...I have Win32 extensions recently installed on my machine -
> just so someone looks for a correlation here :-)

ctrl-Z has always been the way to exit on Windows because that's the
historic end-of-file marker for Windows.  Python 2.5 fixes this schism:
quit() and exit() now work.
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it."  --Brian W. Kernighan

More information about the Baypiggies mailing list