So where does the 'Use quit() or Ctrl-D (i.e. EOF) to exit'
message come from? If it has code to output that message, which
means it knows exactly what the user wants, why not just make
that code do what the user wanted in the first place? The only
reason I can honestly conceive of is spite.

It's the value of the 'exit' (or 'quit') variable.

>>> print "%% %s %%" % exit
% Use exit() or Ctrl-D (i.e. EOF) to exit %
>>> exit = "There's no escape"
>>> exit
"There's no escape"

Reply via email to