foxfirefey: Smiley faces are born through factorized mechanical torture. (grimace)
foxfirefey ([personal profile] foxfirefey) wrote in [community profile] python2010-04-23 02:34 pm

Dear python shell:

Most of the time when I want to quit using you, I do something like this:

>>> exit
Use exit() or Ctrl-D (i.e. EOF) to exit


I am not sure why, if you know enough about what I want to give me a warning message about what I should Properly Do, you couldn't just exit and save me the headdesking trouble!

Other than that, I love you, so I am hoping you have a Really Good reason for this that I just don't know about.
perquisitor_omnia: Green Triskele with Glowing Background (Default)

[personal profile] perquisitor_omnia 2010-05-01 01:14 pm (UTC)(link)
Technical Explanation: It is because all commands to the python interpreter are either keywords or built-in functions of Python. exit() would be how one would exit a python script as well.

Easy Explanation: It is because most programmers are pathological sticklers for exactness.
perquisitor_omnia: Green Triskele with Glowing Background (Default)

[personal profile] perquisitor_omnia 2010-05-01 10:53 pm (UTC)(link)
Probably because they thought that the error message as it stands was more informative? And as I said they are pedants. And I must say that the python interactive interpreter is much more picky than PERL's "if it looks like it might be program code it probably is" mentality.