471,354 Members | 1,603 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

Exiting from python shell

For years now, I've been exiting the shell by typing 'exit\n',
being chid by the shell, and then typing ^D. I can't
remember a time that I typed the ^D the first time. Call
me an idiot if you must, but since someone took the trouble
to catch the command 'exit' in a special way, would it have
been so awful to just let it be a way to exit when the shell?

Thanks,

Toby

--
Posted via a free Usenet account from http://www.teranews.com

Jul 18 '07 #1
1 1385
* James Stroud wrote (on 7/18/2007 4:27 PM):
Tobiah wrote:
>For years now, I've been exiting the shell by typing 'exit\n',
being chid by the shell, and then typing ^D. I can't
remember a time that I typed the ^D the first time. Call
me an idiot if you must, but since someone took the trouble
to catch the command 'exit' in a special way, would it have
been so awful to just let it be a way to exit when the shell?

Thanks,

Toby

Yes, this would have required a ground-up approach to redesigning the
python language, transmuting it to something like a cross between lisp
and COBOL and would have rendered it impossible to author with C because
of the way C implements pointers--hardcoding in assembly would likely be
required. Beyond that, exiting an interpreter is not known in computer
science and has been shown impossible by Goedel himself in a series of
monographs on the topic. Thus, to exit python via a keyword would
require also reformulating mathematics as we know it. Furthermore, such
a change would propagate itself, via the observer effect, to the
behavior of sub atomic particles via ill-defined quantum-mechanical
affects and would likely result in the reversal of the Second Law of
Thermodynamics, wherein your refrigerator would end up heating its
contents and milk would spontaneously spoil, among other anomalies.

For these reasons, you might propose a "quit" keyword.

James
You know, some answers simply *must* be saved for posterity....

Mark
Jul 18 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Stephen Boulet | last post: by
4 posts views Thread by Logan | last post: by
20 posts views Thread by Matthew Thorley | last post: by
2 posts views Thread by Xah Lee | last post: by
6 posts views Thread by Alan Isaac | last post: by
reply views Thread by Cameron Simpson | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.